开发者

MK Mapview get directions using route cloud made apis [closed]

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 11 years ago.

I am developing code for the map view开发者_Python百科 in iphone where I was able to show route on the map. Here by this api,

http://routes.cloudmade.com/8ee2a50541944fb9bcedded5165f09d9/api/0.3/47.25976,9.58423,47.26117,9.59882/car/shortest.js I am getting data in the JSON format, where I also get directions.

I am facing problems of calculating the co - ordinates(latitude, longitude) of the place or the directions which he gave. He will provide the instruction, length, position, time, length_caption, earth_direction, azimuth, turn_type, turn_angle. But not latitude and longitude. Will some one help me on this please. You can find the developer documentation here

Thanks in advance,

Regards,

Shravan


From the documentation link you provided it clearly states the the following:

route_geometry: [Array of nodes from start to end in 4326 projection ([lat1,lon1],...,[latM,lonM])]

Aren't these the lat/longs you are after?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜