[ Whereis® API Home ] [ JSON API Home ] [ Object Index ] [ Return Types ]

Returned by the system in response to an Optimised route by handle request

Defines a polyline using offsets from the first point rather than the complete longitude and latitude coordinates for each point.

Parameters

Name

Type

Description

encodedGeometry

string

String containing a set of comma delimited values, representing:

  • number of points
  • start lat * 10^5
  • start lon * 10^5
  • offset lat
  • offset lon,....

 

For example:

  • "3,3724744,-12189771,100,78,-16,0"

 

Explanation:

  • The polyline contains 3 points.
  • lat[0] = 37.24744 [3724744 * 10^-5]
  • lon[0] = -121.89771 [-12189771 * 10^-5]
  • lat[1] = 37.24844 [(3724744+100) * 10^-5]
  • lon[1] = -121.89693 [(-12189771+78) * 10^-5]
  • lat[2] = 37.24828 [(3724744+100-16) × 10^-5]
  • lon[2] = -121.89693 [(-12189771+78+0) * 10^-5]
{
    "route": {
        "routes": [
            {
                "segments": [
                    {
                        "encodedGeometry": "3,3724744,-12189771,100,78,-16,0"
                    }
                ]
            }
        ]
    }
}

 

 

 

NOTES