Infrastructure Map Server Developer

Infrastructure Map Server Developer

Valued Contributor
Posts: 87
Registered: ‎04-12-2012
Message 1 of 2 (1,093 Views)

what's the API function for distance query

1093 Views, 1 Replies
07-26-2012 08:04 AM

Hi there,


MapGudie has MeasureGreatCircleDistance(coord1, coord2) and MeasureEuclideanDistance(coord1, coord2) to calculate the distance between 2 points. What if I want to query the shortest and longest distance between one point and one layer which has one million points? Is there any API I can use? What's the solution I can use? Thank you

Board Manager
Posts: 202
Registered: ‎12-23-2008
Message 2 of 2 (1,033 Views)

Re: what's the API function for distance query

08-27-2012 02:10 AM in reply to: swimming123



Unfortunately, there is no APIs for topology like finding shortest path in MapGuide, you need to implement yourself. 

Daniel Du
Developer Technical Services
Autodesk Developer Network

Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.