Community of VE/MapPoint Users and Developers
This is a discussion on problem in GetLocation(); within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hello, I am having a problem while interfacing mine software with GPS Locater. I am getting Lat & Long in ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| problem in GetLocation(); I am having a problem while interfacing mine software with GPS Locater. I am getting Lat & Long in text box correctly with mine GPS Locator. But having problem with Lat & Long ... When I click button to find Map.Its give me error ...............at getlocation(); Code: loc = axMappointControl1.ActiveMap.GetLocation(Lat,Long,Altitute); An unhandled exception of type 'System.FormatException' occurred in mscorlib.dll Additional information: Input string was not in a correct format.... It is giving error as GetLocation(); accepts in double format. I tried this Code: string Lat; string Lon; /////as I am using some other string varaibles to get NMEA data... txtLat.Text = Lat; txtLon.Text = Lon; double lat = Convert.ToDouble(this.txtLat.Text as string); double lon = Convert.ToDouble(this.txtLong.Text as string); Regards. Nasir |
| |||
| Re: problem in GetLocation();
Maybe you spelled Altitude wrong (Altitute)? Mike Mattys |
| |||
| Re: problem in GetLocation();
Hi, Quote:
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
| Re: problem in GetLocation();
Hello, Thanks actually I was adding NMEA "GPGGA" data and i converted all in string. But as getlocation(); accepts double format, so I removed N & W from the array of GPGGA and now it works fine. Thanks you vey much once again................. Nasir |
| |||
| Re: problem in GetLocation();
Hi, Just removing the N and W does not make it the right number. Nmea format for latitude is ddmm.fff(f) and for longitude dddmm.fff(f), where (d)dd is degrees, mm is minutes and fff(f) are the fractions of the minutes. for example latitude: 5030.000 is 50.5 degree witch is what GetLocation wants.
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
![]() |
| ||||
| Posted By | For | Type | Date | |
| The Magazine for MapPoint - MP2K Magazine | This thread | Refback | 04-22-2008 07:46 AM | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| AddPolyLine dilemma - is it GetLocation here that's problematic ? | tfmiltz | MapPoint 2006/2009 Discussion | 4 | 11-02-2007 02:40 AM |
| Speeding up Getlocation queries? Help! | Solo4357 | MapPoint Web Service and Virtual Earth | 0 | 10-13-2005 02:34 PM |
| Getlocation in VB .net | wallacech | MapPoint 2006/2009 Discussion | 1 | 12-11-2003 02:27 PM |
Ski Resort in Italy
For a superb value skiing destination look no further than Italy. Book in at a ski resort in Italy to combine great skiing with great cuisine. Holiday Hypermarket offers value for money.
Luxury Holidays
Luxury holidays, family holidays, ski holidays, cruises. Whatever your holiday needs your personal Travel Counsellor can help.
Cape Town Flights
Book Cape Town flights through dealchecker.co.uk to get a great deal. Cape Town has fantastic weather and a wide range of activities to keep you busy.
Holidays in Egypt
A holiday in Egypt will stimulate your mind, captivate your heart and spark your senses. Visit this exceptional country, book today!
Cheap Morocco Holidays
Cheap Morocco holidays may be the answer to your cheap holiday search. With sunshine throughout most of the year it can be great value if you avoid the peak season. Why not include a trip to the small tranquil town of Chefchaouen Tangier in your visit?
Cheap Travel
Travel.co.uk is a travel comparison service which makes it easy to search and find your cheap travel options.
Holidays to Fuerteventura
Come on; jump on the plane to the Canary Islands. Get information on cheap holidays to Fuerteventura at On The Beach.