geolib
geodesy
geolib | geodesy | |
---|---|---|
3 | 1 | |
4,150 | 1,144 | |
- | - | |
5.7 | 0.0 | |
6 days ago | over 1 year ago | |
JavaScript | JavaScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
geolib
-
Am I thinking about geolocation/DB storage correctly?
Hey all, I'm currently using Expo's location plugin. This gives the user's latitude and longitude, which I'm storing in a Firebase Firestore document. I want to have a functionality where a user can select a distance radius (say, nearest kilometer, nearest 10 KM, and a global option which shows all) compared to the user's current location and show all available data within it. There's a library called geolib which can calculate the metered distance between two points. This is great, however I'm having trouble trying to think about how to query for these objects. I don't want to query ALL the documents and then filter down the documents based on their location on the FE, which means I'd probably need to query the backend for this specific data. This is where I'm running into some trouble. I'd basically have to have a firebase compound filter where I'm calculating the distance between the user's current location and +10 miles on the FE. Can somebody shed some light on this approach? I'm thinking: 1. Get users point 2. Calculate an arbitrary point that is essentially 10km away from users point (mathmatically?) 3. Query Firebase Firestore backend for results within that latitude/longitude. It just seems really complicated, and I'm wondering if I'm doing something wrong.
-
Show HN: America – Road Trip Simulator
Thanks for trying it out!
The frontend is built with Svelte. This was my first time using the framework and I found their website super helpful: https://svelte.dev/docs
Used Mapbox API and geolib (https://github.com/manuelbieh/geolib/) for building routes and for other geospatial tasks.
"Talkie" was built with simple-peer (https://github.com/feross/simple-peer) and WebRTC. Great tutorial can be found on MDN: https://developer.mozilla.org/en-US/docs/Web/Guide/API/WebRT...
On the backend I use Vercel's serverless functions which are mostly acting as trivial proxies for various open API's.
Feel free to email me if you need more info.
-
Recommendation for geo TS library for FE for geo calculation like calculating distance between two latitude/longitude in meters/km for frontend etc?
Is it https://github.com/manuelbieh/geolib? Asking just so that I don't endup in wrong place? Also how does it compare with https://github.com/Turfjs/turf (incase you know) as turf.js has more stars, has more recent commits compared to geolib? Let me know what do you think
geodesy
-
Recommendation for geo TS library for FE for geo calculation like calculating distance between two latitude/longitude in meters/km etc?
https://turfjs.org/docs/#distance and https://github.com/chrisveness/geodesy are both likely candidates, although I don't think either is natively TS.
What are some alternatives?
turf - A modular geospatial engine written in JavaScript and TypeScript
Vincenty-Excel - Thaddeus Vincenty's Direct and Inverse formulae for geodesic calculations in Excel (distance, azimuth, latitude, longitude).
world-geojson - GeoJson for all the countries, areas (regions) and some states.
jord - Geographical Position Calculations
historical-basemaps - Collection of georeferenced boundaries of world countries and cultural regions for use in mapping historical data on global or continental scale
qgis-latlontools-plugin - QGIS tools to capture and zoom to coordinates using decimal, DMS, WKT, GeoJSON, MGRS, UTM, UPS, GEOREF, ECEF, H3, and Plus Codes notation. Provides external map support, MGRS & Plus Codes conversion and point digitizing tools.
osm-static-maps - Openstreetmap static maps is a nodejs lib, CLI and server open source inspired on google static map service
flare-timing - Scoring for free flight competitions.
simple-peer - 📡 Simple WebRTC video, voice, and data channels
geodesy - A Dart library for geodesic and trigonometric calculations working with points and paths