Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How can i find the address of a location with mappoint web services

Posted on 2007-12-02
11
Medium Priority
?
193 Views
Last Modified: 2013-11-07
Hi,
I am having a hard time finding the address of a location using mappoint webservices V4.5

For example if i wanted to find the address of the "Empire State Building" or the "University Of Miami", I just can't seem to figure it out. Below is snippet of code that i have been testing with.

I really appreciate any help on this.

Thanks
FindServiceSoap findService = new FindServiceSoap();
        findService.Credentials = new System.Net.NetworkCredential("888888888", "8888888888888888!");
        findService.PreAuthenticate = true;
 
        FindSpecification findSpec = new FindSpecification();
        findSpec.DataSourceName = "MapPoint.NA";
        findSpec.InputPlace = "University Of Miami, Fl";
 
        FindResults foundResults;
        foundResults = findService.Find(findSpec);
 
        Label4.Text = "Found " + foundResults.NumberFound.ToString() + " Results";
        
        if (foundResults.NumberFound > 0)
        {
            FindResult res = foundResults.Results[0];
            Label6.Text = res.FoundLocation.Address.FormattedAddress;
        }

Open in new window

0
Comment
Question by:amagondes
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 5
11 Comments
 
LVL 21

Expert Comment

by:surajguptha
ID: 20393902
What seems to be the problem now? Are you getting any matches? Can u explain in detail please?
0
 

Author Comment

by:amagondes
ID: 20397859
Hi surajguptha,

It returns a result and i can access the lat/lon and a few other properties, but not the address object of the result object.

Thanks!
0
 
LVL 21

Expert Comment

by:surajguptha
ID: 20398068
There is no address property or the property does exist without values?
Isnt the address same as the input you passed to it?
0
NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

 

Author Comment

by:amagondes
ID: 20398245
Hi, well the thing is i looking up a location like "Space Needle" or "University Of Miami" with no address and trying to get the address for a particular location. Thanks for the help.
0
 
LVL 21

Expert Comment

by:surajguptha
ID: 20398362
There is no address property or the property does exist without values?
0
 

Author Comment

by:amagondes
ID: 20399756
there is no address property, but it says in the documentation that a call to find() returns an address as a property
0
 
LVL 21

Expert Comment

by:surajguptha
ID: 20403567
Did you follow the map point Find Address sample in the path
C:\Program Files\Microsoft MapPoint Web Service SDK, Version 4.5\Samples\.NET 2.0\CoreFunctionality\FindAddress
0
 

Author Comment

by:amagondes
ID: 20417194
hi, i've tested with the find address method, but because i am looking for the address of a specific place with no idea what the address is to start with, i think this is where the problem is.

I've even tried geo locating the location ie "University Of Miami" using the find method which gives me a latitude and longitude and then do a reverse lookup with the getLocationInfo method, but the address i not quite correct.

My thought is that what i am trying to do is not possible. Let me know if you think this is not possible and i can give you the points.

Thanks for all your help
0
 
LVL 21

Accepted Solution

by:
surajguptha earned 2000 total points
ID: 20422709
If FindResults class doesnt have any address information my guess is that the actual address isnt returned by that method...

Can you check the FindResults Class??
0
 

Author Comment

by:amagondes
ID: 20438092
Thanks for the help, I appreciate your time.
0
 
LVL 21

Expert Comment

by:surajguptha
ID: 20441642
Did you find the address in the FindResults class?
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …

597 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question