Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

example of yahoo geocoding with googles maps

Posted on 2006-04-18
5
Medium Priority
?
374 Views
Last Modified: 2012-06-27
hello anyone have an example of the yahoo geocode with google maps in asp?  thanks.
0
Comment
Question by:christampa
  • 2
4 Comments
 
LVL 6

Expert Comment

by:WilliamFrantz
ID: 16480563
Maybe this will help:

http://www.codeproject.com/Ajax/GeoLocation.asp

"Yahoo! has a very cool (and free) Web Service for GeoCoding. However, the trick is to make Yahoo!'s service play nice with Google Maps."
0
 
LVL 3

Author Comment

by:christampa
ID: 16481996
i already saw that before the post, it didnt help.  

that is the thing i got the google to work with another geocode, but it isnt as accurate as yahoo.

i also tried the yahoo maps with yahoo geocode, but there is no way to do the directions like google.  

i need an example of a google map, using yahoo geocode.  if you have any please send it,

thanks.
0
 
LVL 3

Author Comment

by:christampa
ID: 16547295
i got the answer here is the function to get it from the xml file

function alertLatLong(addr)
{
var oXML = new ActiveXObject("Msxml2.XMLHTTP.4.0");
oXML.open("GET", "http://api.local.yahoo.com/MapsService/V1/geocode?appid=yahoo&street=" + addr, false);
oXML.send();
var oRes = oXML.responseXML;
var oLat = oRes.selectSingleNode("//*[local-name() = 'Latitude']").text;
var oLong = oRes.selectSingleNode("//*[local-name() = 'Longitude']").text;
var oAddress = oRes.selectSingleNode("//*[local-name() = 'Address']").text;
var oCity= oRes.selectSingleNode("//*[local-name() = 'City']").text;
var oState = oRes.selectSingleNode("//*[local-name() = 'State']").text;
var oZip = oRes.selectSingleNode("//*[local-name() = 'Zip']").text;
}
0
 

Accepted Solution

by:
GranMod earned 0 total points
ID: 16727494
PAQed with points refunded (500)

GranMod
Community Support Moderator
0

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

Question has a verified solution.

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

I feel like more and more people want to know how to programmatically convert addresses into geospatial locations. So in this article, I will show you how you can do it with Bing Maps. I'm going to use PowerShell, which is a nice scripting language,…
Introduction This article is designed to assist GIS (Geographic Information System) and GPS (Global Positioning System) developers using ESRI ArcGIS and other spatial information management systems.   For the uninitiated the concept of projectio…
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
Suggested Courses

578 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