Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

Overpass-geojson

A small script that wraps around the overpass-api to return geojson instead of the custom overpass json format for easier use in applications.

Usage

The live instance can be found at https://giluifm80f.execute-api.us-west-2.amazonaws.com/dev/overPassGeoJson.

An example query could look like this: https://giluifm80f.execute-api.us-west-2.amazonaws.com/dev/overPassGeoJson?data=%5Bout%3Ajson%5D%3B%0Anode%0A%20%20%5Bamenity%3Ddrinking_water%5D%0A%20%20%2852.495793744738634%2C13.426065444946289%2C52.540606032944865%2C13.487005233764648%29%3B%0Aout%3B

Caveats

When posting to the default overpass api you can either send an url-encoded body with a data= prefix or just send a plain query in the body. This service only supports the latter so please do not add the data= prefix.

⚠️ Note: The service expects json data from overpass so you must include [output:json] in your query.

About

AWS Lambda script to return geojson from the overpass api

Resources

Releases

No releases published

Packages

No packages published