PDA

View Full Version : To Fetch hotspot locations using open street map



longtermevolution
2023-10-17, 08:57 PM
There is a way with which we can fetch lat/long of all the hostspots or important locations like restaurants, hospital, railway stations, airports, casino,,,, etc using open street map by using API

Link:
https://overpass-turbo.eu/

one example: i use the query to fetch all the train spots of the Latin America(you can choose specific country also)
43931




Another example i want all firestation locations in brazil

[out:json][timeout:25];
// fetch area “Brazil” to search in
{{geocodeArea:Brazil}}->.searchArea;
// gather results
(
// query part for: “Test”
node["amenity"="fire_station"](area.searchArea);
way["amenity"="fire_station"](area.searchArea);
relation["amenity"="fire_station"](area.searchArea);
);
// print results
out body;
>;
out skel qt;




the output can be extracted to kml. This data you can further use to see if all important spots have good coverage(3G/4G/5G) or not.



note: All spots/locations in openstreet are classified in terms of "amentiy"
https://wiki.openstreetmap.org/wiki/Category:Amenities.


have a look and enjoy

Cheers!!!