Ticket #681 (closed Enhancement: fixed)

Opened 5 years ago

Last modified 5 years ago

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:1 Changed 5 years ago by jri

  • Status changed from new to accepted

comment:2 Changed 5 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 5 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:4 Changed 5 years ago by jri

  • Status changed from accepted to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.