How to query for OSM Relation ID and generate custom polygon for each OSM Relation ID?
I am trying to get a custom polygon for a list of locations. To get the polygon for each item first I need to find each items OSM Relation ID using the searchbox in the https://www.openstreetmap.org and then run that OSM Relation ID through the tool http://polygons.openstreetmap.fr/. That tool will then generate a polygon to the size I am looking for: http://polygons.openstreetmap.fr/get_poly.py?id=1216769¶ms=0.005000-0.002000-0.002000
I would preferably like to bulk query through the OSM Relation database for a group of IDs and automatically generate the polygon with a given parameters for each OSM Relation ID.
**Is there a way to automate this process? Where can I find the database that contains the OSM Relation ID and its properties ? Is there an offline tool to convert the OSM Relation ID to my size polygon?**
For example:
I would like to get the polygon for Miami. To get it I would have to first search the OSM Relation ID of Miami which is 1216769. Then I would use the following link with the id: http://polygons.openstreetmap.fr/get_poly.py?id=1216769¶ms=0.005000-0.002000-0.002000