A Val Town service that converts Google Maps links to OpenStreetMap.org links. This tool extracts location information from various Google Maps URL formats and generates the corresponding OpenStreetMap URLs.
maps.app.goo.gl/..., goo.gl/..., g.co/...maps.google.com/@lat,lng,zoommaps.google.com/place/Location+Name/@lat,lng,zoommaps.google.com/?q=search+termll= or center= parametersVisit the val URL directly in your browser to access the web interface. Simply paste a Google Maps URL and click "Convert to OpenStreetMap" to get the corresponding OSM link.
GET /?url=<encoded_google_maps_url>
Example:
GET /?url=https%3A//www.google.com/maps/%4040.7128%2C-74.0060%2C15z
POST /
Content-Type: application/json
{
"url": "https://www.google.com/maps/@40.7128,-74.0060,15z"
}
Success Response:
{ "original": "https://www.google.com/maps/@40.7128,-74.0060,15z", "converted": "https://www.openstreetmap.org/#map=15/40.7128/-74.006", "success": true }
Error Response:
{ "error": "Not a valid Google Maps URL", "success": false }
https://maps.app.goo.gl/KX1cGxZiY2jK9NFZ8https://www.openstreetmap.org/#map=14/51.7532108/6.38258https://www.google.com/maps/@40.7128,-74.0060,15zhttps://www.openstreetmap.org/#map=15/40.7128/-74.006https://www.google.com/maps/place/Statue+of+Liberty/@40.6892,-74.0445,17zhttps://www.openstreetmap.org/#map=17/40.6892/-74.0445https://www.google.com/maps?q=Central+Park+New+Yorkhttps://www.openstreetmap.org/search?query=Central%20Park%20New%20YorkThe converter uses pattern matching to extract:
When coordinates are available, it generates direct map links. When only place names are found, it creates search URLs on OpenStreetMap.
The service handles various error cases:
All errors return appropriate HTTP status codes and descriptive error messages.