azure-maps

How to get all visible points in the map view bounds in Azure Maps

时光总嘲笑我的痴心妄想 提交于 2021-01-29 13:17:05
问题 I've been searching and trying to use a sample of the select point within a polygon example however I am not drawing a new polygon but rather one is already in the map to use as selection boundary. I have many points on the map as well but some are out of view or possibly hidden due to zoom ratio so I w/ant to ignore all those points from being selected even if they are in the selection polygon. Is this possible? // searchArea is populated by click method function searchPolygon(searchArea) {

Azure Maps (with Turf.js) - can't get the 'points' from the SymbolLayer

我的梦境 提交于 2021-01-29 12:27:12
问题 I have searched for hours on this and finally am reaching out for help. I am creating a map with Azure maps. I have created a drawing area select tool. It works fine in the Azure demo because they create a variable called 'points' and then just assign some random features and locations. BUT... I am pulling my data in using: datasource.importDataFromUrl(geoJsonFeed.url) I have all the JS and CSS set up in the head (i.e. the core Azure Maps JS/CSS and the atlas-drawing.min.cs + atlas-drawing

Azure Maps Fuzzy Search API (https://atlas.microsoft.com/search/fuzzy/json?) works on Postman but fails on Logic Apps

孤街浪徒 提交于 2021-01-29 08:49:02
问题 I started using the Azure Maps API on a project using Logic Apps (Azure). All of a sudden the HTTP action stopped working and I am getting a 400 BadRequest Error. "error": { "code": "400 BadRequest", "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive." However, when I call the same API using Postman or my browser, it works fine. API: https://atlas.microsoft.com/search/fuzzy/json?api-version=1.0&subscription-key=xxxxxxxxxxxxxxxxxxxxxxxxxxx

supporting TLS 1.2 in HttpClient C#

喜欢而已 提交于 2021-01-27 19:21:43
问题 Good afternoon! I use Azure Maps API using HttpClient. How can I enable support of TLS 1.2? As I know in Framework 4.6+ it is supported. And I should not do anything work for this? 回答1: In general you do not need to specify any configuration in your application to enable adoption of the latest TLS protocol. Best practices and scenarios are outlined on docs.microsoft.com for earlier than .Net 4.7. At high level, you should make audit to make sure your application doesn't take any hard

PostRouteDirections does not exclude area from route

三世轮回 提交于 2019-12-24 07:28:04
问题 I used PostRouteDirections API. I got several areas to exclude from route, and put them into PostRouteDirections API. But I see that the route has not changed. This is example of my post request: https://atlas.microsoft.com/route/directions/json?subscription-key={subscription_key}&api-version=1.0&Query=47.73937,11.23431:46.05676,5.16392 and request body: {"avoidAreas":{"type":"MultiPolygon","coordinates":[[[[47.808381,5.955894],[47.808381,6.955894],[46.808381,6.955894],[46.808381,5.955894],

How could I call Azure Maps API in C# with authorisation and client id?

大城市里の小女人 提交于 2019-12-24 03:24:03
问题 I am trying to use Azure Maps API to search POIs around a point using its coordinates, and I do not know how to call the API by adding the Authorization and client-id . This is the request preview I get when I try the API on the Microsoft documentation website. GET https://atlas.microsoft.com/search/poi/json?api-version=1.0&query=university&lat=10.8232&lon=2.98234&limit=1 Authorization: Bearer eyJ0eXAiOiJKV1…… X-ms-client-id: SUXrtewLVItIG3X5….. 回答1: You could use RestSharp. The authorization

How to get raw traffic flow data

一笑奈何 提交于 2019-12-08 10:00:58
问题 Creating application to use car count data from traffic. How do I access the live google maps, waze or bing maps data? 回答1: The Azure Maps platform has raw traffic data you can access for analysis purposes (I have been working with several others who are doing this). There are two approaches. The first is to use the Traffic flow segment API: https://docs.microsoft.com/en-us/rest/api/maps/traffic/gettrafficflowsegment The second is to use the traffic flow tiles. https://docs.microsoft.com/en