What does it do?
-
CoordinateInfo-Client displays a map and as the mouse cursor is repositioned, an API call is made which returns municipality information on the x, y coordinate position of the mouse cursor.
-
This is a companion application to CoordinateInfo-API (https://github.com/greghorne/CoordinateInfo-API) used to consume information via API calls to CoordinateInfo-API.
Deployment: http://coordinateinfo-client.s3-website-us-east-1.amazonaws.com
Options: There is 1 option that may be added to the URL as a parameter to override default settings:
- db=database: database=pg (default) or database=mongo - specifies to API which database to use.
- example: http://coordinateinfo-client.s3-website-us-east-1.amazonaws.com?db=pg
- example: http://coordinateinfo-client.s3-website-us-east-1.amazonaws.com/?db=mongo
Data: For more information on the data source, please refer to: https://github.com/greghorne/CoordinateInfo-API
Tech Stack: Leaflet v1.3.3 & Javascript (Client-side execution only thus there is no web server.)
Note about using MongoDB: I believe that some of the geometry descriptions in MongoDB are too large and hitting some type of size limitation for indexing. Thus when the cursor is placed over Greenland or the southern part of Argentina, MongoDB is taking a long time to return data on the x,y coordinate.