Ticket #681 (closed Enhancement: fixed)
Geomaps API: calculate distance in km between 2 geo coordinates
Reported by: | jri | Owned by: | jri |
---|---|---|---|
Priority: | Major | Milestone: | Release 4.4 |
Component: | DeepaMehta Standard Distribution | Version: | 4.3 |
Keywords: | Cc: | dgf, Malte, carolina | |
Complexity: | 3 | Area: | Application Framework / API |
Module: | deepamehta-geomaps |
Description
Change History
comment:2 Changed 10 years ago by Jörg Richter
Geomaps API: calculate distance in km (#681).
The Geomaps API has a method to calculate the distance between 2 geo coordinates in kilometer.
For high performance a flat-surface formula for a "Spherical Earth projected to a plane" is utilized.
See http://en.wikipedia.org/wiki/Geographical_distance#Flat-surface_formulae
Java API:
double getDistance(GeoCoordinate coord1, GeoCoordinate coord2)
REST API:
GET /geomap/distance?coord1=<lon>,<lat>&coord2=<lon>,<lat>
The distance is returned in the message body.
See #681.
comment:3 Changed 10 years ago by Jörg Richter
Geomaps API: calculate distance in km (#681).
The Geomaps API has a method to calculate the distance between 2 geo coordinates in kilometer.
For high performance a flat-surface formula for a "Spherical Earth projected to a plane" is utilized.
See http://en.wikipedia.org/wiki/Geographical_distance#Flat-surface_formulae
Java API:
double getDistance(GeoCoordinate coord1, GeoCoordinate coord2)
REST API:
GET /geomap/distance?coord1=<lon>,<lat>&coord2=<lon>,<lat>
The distance is returned in the message body.
See #681.