A container that creates different JSON files for specific purpose:
- Create a global OSM map to display all the communities of 2140 meetups. The creation of each point will be based on the communities that stores the 2140 meetups data base
- Create individual files for each community that after BTC Maps will render in its own map. That data will be available through an API endpoint
To create all the JSON files, follow the bellow steps:
- Build a container
docker build -t 2140-sandbox .
2.Run container
# add remove option to remove the container when exists
docker run --rm -v ./btcmaps:/usr/src/2140_geo/btcmaps -v ./leaflet:/usr/src/2140_geo/leaflet --name meetups-integration 2140-sandbox
3.Kill container
# In our case the name is meetups-integration
docker kill container_name
The container is not implemented in a clean way and each time that we build, it creates a new image. To delete the duplicated images with <none>
tag, execute that to delete:
docker images -a | grep none | awk '{ print $3; }' | xargs docker rmi
- API endpoint for BTCMaps
- The leaflet file that we will use to render the map: geo.json file
- Nominatim
- Nominatim API
- GeoJson area
- Country Codes
- Polygons OSM
- API Ninjas - Deprecated