MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Lat and Long issue

This is a discussion on Lat and Long issue within the MapPoint Web Service and Virtual Earth forums, part of the Map Forums category; Hello, I have the lat and longs for certain airports and I'm trying to map them. I pass the lat ...


Go Back   MapPoint Forums > Map Forums > MapPoint Web Service and Virtual Earth

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  5 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 06-25-2007
Junior Member
White Belt
 
Join Date: May 2006
Posts: 4
Lat and Long issue

Hello,

I have the lat and longs for certain airports and I'm trying to map them. I pass the lat and long to a method with the following Java code:

ArrayOfLocation loc = findService.getLocationInfo(myLatLong, dataSource, gio);
Location[] locations = loc.getLocation();
Location myLocation = locations[0];

For most of the airports it works fine, but for some it throws an NullPointerException at the last line. It seems as though the web service doesn't find the location at all. When I go to About.com and do a mappoint search using the lat and long the map comes for them with no problem.

Can it have something to do with my using staging urls for testing? If not, does anyone have any possible solutions?

Thanks,

Howard

Last edited by hprider; 06-25-2007 at 12:34 PM. Reason: Email notification
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 06-30-2007
Junior Member
White Belt
 
Join Date: Jun 2007
Posts: 3
Re: Lat and Long issue

How can it not find the location when you are passing the specific lat/lon? Sorry I'm not sure I follow the question.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 07-03-2007
Junior Member
White Belt
 
Join Date: May 2006
Posts: 4
Re: Lat and Long issue

Hello,

What I mean is that I pass the lat and long for an airport as the FROM location and the address of the property I'm mapping as the TO location. For most of the properties it works fine, I get the map and directions as requested. But some do not work at all. For example, Atlanta-Jackson International Airport has lat: 33.636719 and long: -84.428067. When I pass them into the code I get the forementioned error. When I pass the lat and long of another airport, for example Fort Lauderdale-Hollywood International Airport lat: 26.072583 long: -80.15275 it works fine for the same address I used before. When I go to Google Maps and enter the same lat and long I used for the Atlanta airport the map comes up correctly so I know the lat and long are correct. (Got them from the airport website anyway).

I just don't understand why some lat/long coords work fine and some don't, event though the coords are verified as correct.

Thanks,

Howard
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/lat-long-issue-5996.html

Posted By For Type Date
MapPoint For Dummies - MP2K Magazine This thread Refback 06-27-2007 01:47 PM
Map Visitors - Powered by Virtual Earth This thread Refback 06-27-2007 10:23 AM
The Magazine for MapPoint - MP2K Magazine This thread Refback 06-27-2007 03:56 AM
MapPoint Download - MP2K Magazine This thread Refback 06-25-2007 03:08 PM
The Magazine for MapPoint - MP2K Magazine This thread Refback 06-25-2007 12:59 PM

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Mappoint Installation issue jacky3212 MP2K Magazine Articles 2 07-19-2008 12:08 AM
Moving Text Balloon Issue mroyle MapPoint 2006/2009 Discussion 0 10-13-2005 04:20 PM
License issue for own Web application Anonymous MapPoint 2006/2009 Discussion 1 03-29-2005 01:54 PM
java issue Anonymous MapPoint 2006/2009 Discussion 1 03-01-2005 05:11 PM
vb6 server issue starbuck MapPoint 2006/2009 Discussion 1 04-15-2004 10:27 AM


All times are GMT -5. The time now is 02:11 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map

Borovets Ski Holidays
Borovets ski holidays are set amongst stunning scenery with a great selection of restaurants, hotels and nightlife. Borovets ski holidays are great value for money.

Independent Travel Agent
Travel Counsellors is a completely Independent Travel Agent. Our travel agents are free to help with your travel plans.

Holiday to Thailand
Want to go somewhere new? Book a low cost holiday to Thailand at dealchecker.co.uk. See the stunning national parks and uninhabited islands.

Cuba Holidays
Cuba holidays offer an exciting cultural and wonderful culinary experience. Book with The Holiday Place for a great deal.

Cheap Spain Holidays
Stay well informed when you are searching for cheap holidays online. For useful advice on when to book cheap Spain holidays make sure you look on ulookubook.com

Travel Deals
Click here and read up on the travel deals available online.

Holidays in Fuerteventura
Need a break? Go to the Canary Islands! Find information on holidays in Fuerteventura at On The Beach.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51