Community of VE/MapPoint Users and Developers
This is a discussion on How to get Lat, Lon from a Location object? within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Is there a function in C++ to get Lat, Lon from a Location object? Say after you FindNearby and using ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| How to get Lat, Lon from a Location object? Say after you FindNearby and using the index thru the FindResults to get Location object (example: A restaurant), how to get Lat, lon for this restaurant? |
| |||
|
Hi Kalradeepak, The strang thing is that, I could not find where this function is obj.getLatLong().getLatitude(); Below is the class wrapper imported by the typelib. Please explain where this function comes from. Van // Location wrapper class class Location : public COleDispatchDriver { public: Location() {} // Calls COleDispatchDriver default constructor Location(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {} Location(const Location& dispatchSrc) : COleDispatchDriver(dispatchSrc) {} // Attributes public: // Operations public: LPDISPATCH GetApplication(); LPDISPATCH GetParent(); CString GetName(); void GoTo(); LPDISPATCH GetLocation(); LPDISPATCH GetPlaceCategory(); LPDISPATCH FindNearby(double Distance); BOOL GetHighlight(); void SetHighlight(BOOL bNewValue); BOOL GetIsHighlightable(); double DistanceTo(LPDISPATCH From); void Select(); void Copy(); LPDISPATCH GetStreetAddress(); long GetType(); }; |
| |||
| Re: How to get Lat, Lon from a Location object?
Hi, Quote:
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| ||||
|
I've added the answer to the FAQ. It is a very common question, and I'll have to admit Gilles article is a very useful solution! Richard
__________________ Winwaed Software Technology LLC http://www.winwaed.com See http://www.mapping-tools.com for MapPoint Tools Pre-Order MapPoint 2009 today: http://www.mapping-tools.com/mappoint2009 |
| |||
| Quote:
otherwise you never should forget to
just joking of course...
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
![]() |
| Tags |
| lat, location, lon, object |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Persisting a Location object to disk | Anonymous | MapPoint 2006/2009 Discussion | 1 | 07-16-2004 01:04 PM |
| Country-information from Location-object | C72831 | MapPoint 2006/2009 Discussion | 0 | 01-03-2004 07:27 PM |
| Getting Location Object by only the ZipCode | Anonymous | MapPoint 2006/2009 Discussion | 1 | 07-30-2003 04:02 PM |
| Getting address information of location object in delphi? | Sheridan | MapPoint 2006/2009 Discussion | 1 | 03-07-2003 09:37 AM |
| Decode Location Object to Latitude, Longtitude positions? | Anonymous | MapPoint 2006/2009 Discussion | 1 | 10-16-2002 06:29 AM |