How do I get tourist attractions around zip code using OpenStreetMap? - dictionary

I want to get all tourist attractions around a zip code in the US. How do I do that from OpenStreetMap api?
I have found this http://wiki.openstreetmap.org/wiki/Key:tourism
But I'm not sure how to use it.
http://nominatim.openstreetmap.org/search?q=135+pilkington+avenue,+birmingham&format=json&polygon=1&addressdetails=1&tourism=attraction

You can use overpass turbo e.g. with the query wizard to show for the current bounding box the available objects.
To do this for a zip code instead of a bounding box this is much more complicated even in a properly mapped region like Germany, because to my knowledge there are no relations (or very rarely) that map a zip code to a boundary polygon. You could obtain several addresses with zip codes and then create a kind of a boundary for it but that won't be very precise. Regarding US you also have probably less features like zip code mapped due to the Tiger import (less mapping activity), not sure.

Related

How can I draw a map with lines using Here?

I have some csv files of latitude/ longitude points and I want to draw some maps using Here.
Points,Latitude,Longitude
Start_Point,37.8279,23.80773
Point_7,37.83347,23.80042
Point_6,37.83374,23.80056
I want to be able to see the directions from point A to point B on road.
I have uploaded the csv via "Your Geospace" but seems like I don't have access to GPX traces on support layers. Is this available only when you upload GPX files?
Is there a way not to only draw the points on map, but draw the whole route. I want something like a travelling salesman problem.
We have HERE TCS examples page https://tcs.ext.here.com , https://tcs.ext.here.com/examples/v3.1/ where you can find how to develop your applications - just mouse right click on an example and select 'View page source'
We have RME API (Route Match Extension) where you can upload your GPS coordinates in CSV format: https://tcs.ext.here.com/examples/v3.1/rme_basic - this example makes a route match the points and calculate a route with showing on the map.
Travelling salesman problem you can resolve with HERE APIs:
HERE WSE API (Waypoints Sequence)
https://developer.here.com/documentation/routing-waypoints/dev_guide/index.html
HERE Tour Planning API - https://developer.here.com/documentation/tour-planning/2.3.0/dev_guide/index.html

Extracting Polygons from Online Map

The below linked map contains a number of layers which I would like to be able to extract as polygons [if possible]. I've not previously done any web-scraping and realise that doing so in regards to the geographic data on this system represents a significant challenge.
Ideally I would only want to extract the data relating to the 'Shopping Local Centre' category.
Happy to try to use Phython or R to achieve such, just wondered if anyone had any ideas.....
Web scraping (using BeautifulSoup, for example) would get you the HTML objects from a webpage. You would need basic knowledge of Python for this.
Or you could avoid that by going this route:
With QGIS and Geofabrik you can gather retail location polygons and their attributes of a given area.
Use Geofabrik to download your area of interest in *.shp (shapefile) format. It looks like you're in Greater Manchester, so I navigated to the download page here (it's a 50MB file for the greater-manchester-latest-free.shp.zip).
Once you download that, open it in QGIS and you'll see in the attributes it has retail locations.
That site is using WMS to display the map (I work for the company that makes iShare) so there is no vector content for you to scrape as it works entirely with images.
The easiest way to get the data would be to ask the council to provide it, you might need to make it a freedom of information request but they should be happy to provide the data in a usable GIS format.

Here API: Map NAVTECH edge numbers to latitude/longitude?

I am using the Here API to search for roads where traffic accidents occur in my home town. My aim is to extract the full road coordinates (as sequence of of lat/lons) where the accident is active in order to draw that road on a reasonable scale.
Using the traffic/6.1/incidents API, I query for the data using a geographical bounding box. An accident in the response is described by one pair of TMC locations as well as one pair of lat/lon geographical points. This data is too coarse-grained for plotting the roadway. (Please correct me if I am wrong here, but I would like to add some more detail about turns of the road.)
My question regards what I found when I turned to examine the rest of the accident/incident response, containing so-called NAVTECH data on this (XML) form:
<NAVTECH><EDGE><EDGE_ID>1150578390</EDGE_ID><EDGE_ID>1150578391</EDGE_ID>
<EDGE_ID>...</EDGE_ID>
<VERSION_ID>201604</VERSION_ID></NAVTECH>
My question is: Is there any available method to map the NAVTECH edges to pairs of lat/lon coordinates?
I have searched Here.com, the here-api stackoverflow tag and tried to Google for an answer, but I find so little documentation on this type of data. I am looking for all information I can find to (i) Describe the NAVTECH edges and their meaning, (ii) How to map NAVTECH to geographical coordinates. In general, (iii) Can I use the Here API to get more geographical information than this about roads where there are accidents?
Kind regards,
Vilhelm from Sweden
You can pass a lat/lon to their routing API and get back the shape point coordinates (and other attributes) for the road edge at that location, like this:
https://route.cit.api.here.com/routing/7.2/getlinkinfo.xml?waypoint=43.066628,-71.471729&app_id=DemoAppId01082013GAL&app_code=AJKnXv84fjrb0KIHawS0Tg&linkattributes=all
Unfortunately, though, this may not be a long term solution, as seaBass states here:
getlinkinfo will depreciated March 31, 2017. In order to get speed limit information you will have to use PDE (Platform Data Extension) which requires an APP ID and Code

api for retrieving object at a specific gps coordinate

I have been reading the google maps api and the openstreetmap api, but i cannot find if they offer the following functionality:
I need to find out if at a specific gps coordinate there is a building or a street.
Do you know of any api offering this?
Thanks.
I wonder how you could missed that if you already did look at the documentation.
Of course OpenStreetMap can do this. There is the main API (which is primarily for editing and not for bulk querying!) where you can retrieve all map data within a specified bounding box.
Example:
http://api.openstreetmap.org/api/0.6/map?bbox=13.76500,51.05600,13.76515,51.05615
This will return all objects between latitude 51.05600 and 51.05615 and longitude 13.76500 and 13.76515. For how to interpret the returned XML file read OSM XML in the OSM wiki.
In order to know if a specific object is a building, a street or something else you have to look at the tags. Buildings are usually tagged using the building key and can either be a single node, a way or (rarely) a relation. Streets are usually ways and are tagged using the highway key.

Google Earth Pro Alternatives

Is there any alternate free application like Google Earth Pro ? , My main thing is it should import shape files as a layer in the map.
Depends upon what you are looking for. If you really just want to see the shapefile, use something like qgis or udig.
If you want to see the shapefile on top of a street map or a satellite base layer, I am not sure there is something that will work for you out of the box. Open Street Map has the data; a service like http://www.osm974.re/osm2gis/ can export a limited area of Open Street Map data as a shapefile.
You might want to peruse this page from the Open Street Map wiki: http://wiki.openstreetmap.org/wiki/Shapefiles
There's this open source application called "Marble" that works ok...but unfortunately you can't load shapefiles into it. You have to convert your shapefiles into wkt with qgis or something before loading them in. The satellite imagery is so pathetic as to be considered nonexistent. But its faster than Google Earth Pro that's for sure, and you can use OpenStreetMap to get a pretty good vector scaled experience to see where you are.
http://marble.kde.org/index.php

Resources