How to download in overpass turbo a specific path - openstreetmap

in overpass turbo how can I download Way number 209583332, I got it from OpenStreetMap site which is a
highway=path
If use highway=path in the wizard it selects all paths from the map window and I only want number 209583332.

You can download it directly from the OSM API: https://www.openstreetmap.org/api/0.6/way/209583332. However don't use this API for bulk downloads, see the API usage policy for more information.
For downloading a specific element via Overpass API just query for this ID:
way(209583332);
out;
Example: http://overpass.osm.rambler.ru/cgi/interpreter?data=way(209583332);out;

Related

How to use Web activity in Azure Data Factory to count the total number of pages in source data?

I am doing REST API call to get source data which is JSON and file size is around 1GB. I would like to use pagination concept. I see in this link https://learn.microsoft.com/en-us/answers/questions/59467/how-to-pass-pagination-rules-during-a-rest-api-cal.html?childToView=256118#answer-256118 where it uses Web activity to get the total page. But how? any advise!
My sink is COSMOS DB
According to your link, I think we only can make a web call to find out the total pages. In other words, the total pages is from your REST API. Then we can use an Array type variable to store the response.

ArcGIS REST API - How to view the geoJSON results?

How do you use the ArcGIS REST API to view the geoJSON results for fires? The URL is https://wildfire.cr.usgs.gov/arcgis/rest/services/geomac_dyn/MapServer/3/ or https://wildfire.cr.usgs.gov/arcgis/rest/services/geomac_dyn/MapServer/3?f=json but it isn't displaying the latest fire perimeter data just the metadata.
ArcGIS REST URL
I figured it out above with the help of the original commentator. usgs.gov/arcgis has a query guide and you just need to know SQL Where commands.
i.e. query?where=active = 'Y'

Autocomplete testing on Azure Search explorer

I am trying to build and test the auto complete feature on a master item lookup tables using Azure Search (for a ASP MVC application). The search index was done with the suggesterName SG set to ItemDisplayName
I was looking to test it first on Azure portal- so that I could aim to replicate the results via code. This is because the results I am getting in code are quite unexpected
As I type the substring the itemDislayName, the expectation was that upto 5 selected names will be displayed
On the portal, I tried a query string of
search=str&suggesterName=SG
with the base request URL containing the index, api version and sugestorName-but I don't get results of items containing 'str' and with the fuzziness as below
Could you please guide around
[1] how I can get suggestor output in azure portal-search explorer
[2] can I control fuzziness using queryType and ~1,~2
I was referring to these 3 links
1) https://learn.microsoft.com/en-us/rest/api/searchservice/suggestions
and
2) https://channel9.msdn.com/Shows/Azure-Friday/Azure-Search-103-Azure-Search-Suggestions-with-Liam-Cavanagh
3) gunnarpeipman.com/2016/07/azure-search-suggesters/
Azure Search Portal doesn't support the Suggestion API yet. You will need to use an HTTP client like Fiddler or Postman.
Make sure you use the right URL for you Suggest requests:
https://[service name].search.windows.net/indexes/[index name]/docs/suggest
Please use our User Voice page to vote for adding the Suggest API to the Portal: https://feedback.azure.com/forums/263029-azure-search

how to work with bing map rest api to find a location

When I wrote any location like "Surat","mumbai", etc it will display its location on map using Bing Map Rest API but when i write "Jamnagar Reliance" it will not give any result
i search location using "location by query" api.
http://dev.virtualearth.net/REST/v1/Locations?q=
I am using above url to find a location.
It returns following result
{"authenticationResultCode":"ValidCredentials","brandLogoUri":"http:\/\/dev.virtualearth.net\/Branding\/logo_powered_by.png","copyright":"Copyright © 2015 Microsoft and its suppliers. All rights reserved. This API cannot be accessed and the content and any results may not be used, reproduced or transmitted in any manner without express written permission from Microsoft Corporation.","resourceSets":[{"estimatedTotal":0,"resources":[]}],"statusCode":200,"statusDescription":"OK","traceId":"a9a6612f91ad4d26af8782a71568b1e2|HK20271656|02.00.108.1000|HK2SCH010280621, HK2SCH010310228, HK2SCH010301656, i-98935154.ap-southeast-1a, CO3SCH010265312"}
Bing Maps actually finds Reliance, India when you search for Jamnagar Reliance. If no results are being returned you should also check the header of the response. Trial and Basic Bing Maps keys are rate limited to ensure that non-licensed users do not distribute the service for licensed users. You can find the documentation on rate limiting here: https://msdn.microsoft.com/en-us/library/ff701703.aspx

Bing maps: Direct Access to tiles and Api key

i am using Bing map tiles in my Android application. I download tiles from http://h0.ortho.tiles.virtualearth.net/tiles/h<quadkey>.jpeg?g=131 and it works fine, but i understand that i need to append a token to this URL in order to make this operation legal (and ask some kind of special permission from Microsoft). It is all well explained here: http://blogs.msdn.com/b/virtualearth/archive/2008/04/29/tracking-virtual-earth-tile-usage.aspx. But this post is from 2008 and i found on msdn site that in 2012, token-auth system will be replaced with key auth system.
Does anybody know how can i perform the direct tile access with this new auth system?
Thanks in advance
Accessing tiles directly with key-based authentication can be accomplished like so:
Using the REST ‘Get Imagery Metadata’ service to obtain the tile URL format for the type of tiles you wish to display:
http://msdn.microsoft.com/en-us/library/ff701716.aspx
- For example, if you wish to display Road tiles, the following request could be used (taken from the above documentation): http://dev.virtualearth.net/REST/V1/Imagery/Metadata/Road?mapVersion=v1&output=xml&key=BingMapsKey
Within the response, the URL for tiles is returned, with a placeholder for the tile quadkey.
A new REST request should be issued each time the map viewer in the application is instantiated, or whenever the map type is changed (eg. You wish to switch to aerial or hybrid map style)
Your platform usage can then be tracked based on the calls to the REST service.