473,761 Members | 4,407 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Google Maps Api

Hi!

im would like to get address informations like city, state or zip for a
given GPoint. Is it possible (i found nothing in Google maps Api)?

Thanks in advance
Aug 5 '08 #1
2 2559
H.Schmidt wrote:
im would like to get address informations like city, state or zip for a
given GPoint. Is it possible (i found nothing in Google maps Api)?
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<title>Search Country, City, State, Address with GPoint</title>
<script type="text/javascript"
src="http://maps.google.com/maps?file=api&a mp;v=2.x&amp;ke y=[XX]">
</script>
<script type="text/javascript"
src="http://google.com/uds/api?file=uds.js &amp;v=1.0">
</script>
<script type="text/javascript"
src="http://google.com/uds/solutions/localsearch/gmlocalsearch.j s">
</script>
<script type="text/javascript">
function findInfo(x,y) {
if (GBrowserIsComp atible()) {
var s = new GlocalSearch();
var c = {
callback:functi on() {
if(s.results.le ngth == 0) {
alert('No result');
}
else {
alert('Country: ' + s.results[0].country);
alert('City: ' + s.results[0].city);
alert('State: ' + s.results[0].region);
alert('Address: ' + s.results[0].streetAddress) ;
}
}
};
s.setCenterPoin t(new GLatLng(x,y), 1);
s.setSearchComp leteCallback(c, c.callback);
s.execute(new GLatLng(0,0), 1);
}
}
</script>
</head>
<body onunload="GUnlo ad()">
<b>GPoint coordinates</b><br>
X: <input type="text" value="40.014" id="X" name="X"><br>
Y: <input type="text" value="0.846" id="Y" name="Y"><br>
<input type="button" value="Go"
onClick="findIn fo(document.get ElementById('X' ).value,
document.getEle mentById('Y').v alue);">
</body>
</html>

-------------------------------------------------------------------

Info:
http://code.google.com/apis/maps/doc...reference.html
http://code.google.com/apis/ajaxsear...s_GlocalResult
(apparently there is no property for the ZIP-code)

Replace [XX] by your Maps API Key

Hope this helps,

--
Bart
Aug 5 '08 #2
Many Thanks!

Aug 5 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
61094
by: Sean | last post by:
Have you ever wanted to add the great features inherent in Google Maps? Here is how you do it. ============== == STEP ONE == ============== Create a new MS Access form called frmGoogleMap. Size the form to your liking...
0
1894
by: windandwaves | last post by:
Hi Folk Some of you may find this function useful. It makes it easier to create maps using Google Maps. I link it to a database of points. The main use of the function is that it creates all the javascript needed for Google maps to work. Any questions or comments? Please ask. Nicolaas
6
2988
by: Sam Carleton | last post by:
Ok, over the years I have read about doing web programing and I have done some real basic stuff. Now I am digging into some real ASP.Net 2.0 and am totally lost some things. I have a master page setup and that is working great. On my contact page I would like to use Google Maps API Version 2 to show a map to my location. Below is the first Google example. I would like to add this to my aspx page that is using the master page. I...
17
4616
by: MeerkatInFrance | last post by:
There comes a time when you know you are not going to be able to work something out yourself, however hard you try. I have reached that moment. I have a master page and a slave page (or whatever one calls it) All I want to do is show a Google map on the slave page. The map that Google gives as an example when it gives you a key would be just fine. I have searched high and low for a means of doing this but all I could find
1
7290
by: xahlee | last post by:
Elisp Tutorial: Make Google Earth Xah Lee, 2006-12 This page shows a example of writing a emacs lisp function that creates a Google Earth file, and creates a link to the file, as well a link to Google Map. If you don't know elisp, first take a gander at Elisp Basics. I often write travelogs on my website. If i traveled to Las Vegas, then
5
4018
by: xml .NET group | last post by:
Is there any book on using ASP.NET for Google Maps. For example, following books: http://www.amazon.com/Beginning-Google-Maps-Applications-Ajax/dp/1590597079/ http://www.amazon.com/Beginning-Google-Maps-Applications-Rails/dp/1590597877
3
7485
by: Harch84 | last post by:
Hi I am using a javascript for google maps to geocode two locations and I thin want to retrieve the two coordinates and enter them into a Perl Script. Now I have managed to set up the page with the geocoder and the script uses getLatLng() to draw the two points on two different maps. My problem is hw do I assign these coordinates to variables or some means of entering them into my perl scrip? My Javascript code is below: <!DOCTYPE html...
3
4442
by: Phil Stanton | last post by:
I have a button on a form which when pressed displays a google map of the address. Code is Private Sub Googlemap_Click() MakeURL ("") End Sub
0
3738
by: TrevRex | last post by:
Hello, I work for a non-profit in San Diego as a GIS Specialist. I have had to teach myself about some scripting to create some dynamic maps, but I am still very limited in my skills, so I have had to explore the internet in order to discover various tutorials and examples that have led me on a positive path. Right now I am working on a Google Mash-Up that will incorporate over 14,000 records, which will appear as separate markers that...
0
9531
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9957
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9905
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9775
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7332
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6609
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5373
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3881
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3456
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.