Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jeffascript/geolocate-with-bbox
https://github.com/jeffascript/geolocate-with-bbox
Last synced: 10 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/jeffascript/geolocate-with-bbox
- Owner: jeffascript
- Created: 2022-05-02T11:22:35.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-05-05T04:09:21.000Z (over 2 years ago)
- Last Synced: 2024-11-15T06:15:14.525Z (2 months ago)
- Language: TypeScript
- Size: 587 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# geolocate with bbox & longlat
A Geo bound box App. Results in a Geojson from a bbox or Latlng input powered by a free API from openstreetmap.com
#### Add this on your .env in server folder
`OSM_URL=https://www.openstreetmap.org/api/0.6/map?bbox=`#### START CMD
`yarn dev`
N/B: The shared file is linked within the module and accessible by `client` and `server` via `yarn link @jeff/shared`
Points to note:
No caching or db used since:
1. The data does change frequently/abruptly.
2. The data is provided through an API that has low down time, so we can easily query it using fetch.
3. We don't care if the user can see the HTTP request in the "Network" tab of their browser's inspector. In other words, there are no security concerns in exposing this request to the client.
4. We're not being charged for every API request, so we don't have a particular interest in limiting the number of requests.--- To improve,
1. Deploy with Docker
2. ...