I'm pretty new to maps and geographic systems. Maybe you can help me out with this OSM problems. I'm working on web application in WebGL, and I have two major questions:
I would like to know how to correctly query for city boundaries polygon. I've tried to use JSONP and http.get requests to get data form 'http://polygons.openstreetmap.fr/get_geojson.py?id=1582777' but I can't get it because of CORS policy. This server seems to be JSONP disabled. Does any other kind of similar API exists?
To get proper relations of my address I'm querying 'nominatim.openstreetmap.org' multiple times, every time constructing a new URL. Query for address to get city, city to get country, etc. This works but feels really tiresome. How do I query nominatim, knowing street address and getting all info that I need (city, country, continent)?
Can you give me some hints?