[Click Here](http://download.geonames.org/export/zip/)In this link, there is a txt file with all the zipcode and lattitude, longitude for US. How do I get lattitude and longitude for a zipcode from this text file, using javascript as I wanna create a google map application, that displays a location after providing a zipcode.

Member Avatar
Member Avatar
+0 forum 2

Hi! I am trying to make a small application with google maps! I have successfully addded few points on the map using xml output to php from mysql database.. function load() { var map = new google.maps.Map(document.getElementById("map"), { center: new google.maps.LatLng(38.99,22.49), zoom: 7, mapTypeId: 'roadmap' }); var infoWindow = new google.maps.InfoWindow; // Change this depending on the name of your PHP file downloadUrl("phpsqlajax_genxml2.php", function(data) { var xml = data.responseXML; var markers = xml.documentElement.getElementsByTagName("marker"); for (var i = 0; i < markers.length; i++) { var name = markers[i].getAttribute("name"); var info = markers[i].getAttribute("info"); var type = markers[i].getAttribute("type"); var point = new google.maps.LatLng( …

Member Avatar
Member Avatar
+0 forum 3

I am using Microsoft Visual Web developer 2010. I have Google Maps embedded on my webpage and a textbox (txtBoxInput) using the code: <input runat="server" type="text" id="txtBoxInput"/> A button which displays a new map loction: <input type="button" id="btnDisplay" value="Display map" style="height:34px;width:90px;" onclick="showPoint();"/> I also have an aspn.net button (btnTest) using the code: <asp:Button ID="btnTest" runat="server" onclick="Button1_Click" Text="Button"/> And the code in btnTest's event: protected void Button1_Click(object sender, EventArgs e) { string test = txtBoxInput.Value = "New York, United States"; } When I click the button (btnTest), the textbox (txtBoxInput) gets filled with "New York, United States". I then click btnDisplay …

Member Avatar
Member Avatar
+0 forum 2

Hi i am trying to geocode tweets to a google map i have all my code in place but it just isnt loading up my tweets its just showing the map here is my html code can anyone tell me where i am going wrong thanks <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Interactive Google Map using the Twitter API</title> <link href="css/default.css" rel="stylesheet" type="text/css" /> <script src="js/jquery.js" type="text/javascript"></script> <script src="http://maps.google.com/maps/api/js?sensor=true" type="text/javascript"></script> <script src="js/init.js" type="text/javascript"></script> </head> <body> <div id="map"></div> <div class="twitter"> <div class="inside"></div> </div> <div class="posts"></div> <div class="get"> <input type="hidden" value="MiddlesexUni" /> …

Member Avatar
Member Avatar
+0 forum 5

Hello all, Im new here and looking for some advice re the google maps javascript API (which im also pretty new at) The background: I have managed to get some pages that use the googlemaps interface up and running add markers to them etc and allow the user view directions from there location to any of the markers by directing them to google maps in a separate tab. The Problem: My client (boss) likes the maps on my page and the google directions BUT wants the directions to appear in a child window not as part of another page in …

Member Avatar
Member Avatar
+0 forum 2

Hi, As part of a project i am developing a taxi booking system. A part of it i am struggling to even think of what to do for is knowing distances between two real addresses e.g. Birmingham and Manchester for reasons such as calculating prices. Obviously it would be impractible to even think of storing all distances in my database between every combination of two locations. Is there a known method of doing this sort of procedure? Could google maps or something similar be incorporated to calculate distances? If so, how? Any help would be much appreciated as i have …

Member Avatar
Member Avatar
+0 forum 5

Hi guys, Forgive me if this is a stupid question as I'm fairly new to computing. Been trying to make a webpage that displays a googlemap with multiple markers based on data from an XML file but can't seem to get it to work. Would be ETERNALLY grateful to anyone who can pick out where I'm going wrong! [CODE] <html> <head> <script type="text/javascript"> function callXML(){ if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.open("GET","partners.xml",false); xmlhttp.send(); return xmlhttp.responseXML; } xmlDoc=callXML(); var partners=xmlDoc.getElementsByTagName("partner"); var lats=new Array(); var lngs=new …

Member Avatar
Member Avatar
+0 forum 35

Hello, I would like help in change a bit the following code. It shows google map, but I would like to show google street view. Can you tell me what I need to do/change? I donĀ“t understand very well code. Thanks in advance. This is the code: [code]<?php // =============================== Google Map Single page====================================== class googlemmap_singlepage extends WP_Widget { function googlemmap_singlepage() { //Constructor $widget_ops = array('classname' => 'widget Google Map in Detail page Sidebar', 'description' => __('Google Map in Detail page Sidebar. It will show you google map V3 for detail page only.') ); $this->WP_Widget('googlemmapwidget_single', __('PT &rarr; Google Map V3 …

Member Avatar
Member Avatar
+0 forum 4

Greetings all, I've just started learning Ruby (and Geo Ruby), and am trying to create overlays for Google Maps. I found a [seemingly] great tutorial for doing this [B][URL="http://blog.newsplore.com/2009/02/22/spincloud-lab"]HERE[/URL][/B] ...and it uses Ruby to generate the final javascript - cool, eh? Have everything installed properly (as far as I can tell - gem list gives me the whole bundle including: mysql (2.8.1)). MySQL working fine. I get this error when trying to run the script (attached) from a shell: Command: [CODE]$ ruby ./Desktop/gen_encpolygons.rb[/CODE] Returns: [CODE]./Desktop/gen_encpolygons.rb:11:in `initialize': wrong number of arguments (4 for 0) (ArgumentError) from ./Desktop/gen_encpolygons.rb:11:in `new' from ./Desktop/gen_encpolygons.rb:11:in `generate_js_border_overlay' …

Member Avatar
Member Avatar
+0 forum 14

Hi, I'm now starting out learning blackberry development, in hopes to eventually create an app using google maps so that mobile users can report different types issues and pinpoint their location (it is supposed to be an app that will hopefully be used by government). What i'm wondering though is if this should be a regular blackberry java developed app, or should I just do a web based application utilizing the google maps api, because i'm not seeing many resources for using google maps in blackberry apps. Any help, info, comments, etc would be really appreciated.

Member Avatar
+0 forum 0

I think maybe this is the right thread for it since i found out Google map control can be created using AJAX. so the question is simple, How to create Google Maps Control ? preferably in an ASP.Net environment. Found a source code here (GNU licensed) but it's too complex to give me any help :s [url]http://www.shabdar.org/google-maps-user-control-for-ASP-Net-part1.html[/url]

Member Avatar
Member Avatar
+0 forum 2

Google Maps Control in ASP.Net or something like that ... well to get to the point directly ... what i am searching for is embedding Google Maps in my ASP.Net page, want to use the Direction feature that Google Map provides. Now the problem is, although Google Map gives a lot of information about how to do it using JavaScript but i don't know any JavaScript :( so far what i have searched for in the internet is , Using Ajax is the solution to create Google Maps control, am i in the right direction and any preferable links ? …

Member Avatar
Member Avatar
+0 forum 2

Hello everyone, I am trying to understand how a journey planner shows a map of user's journey. My idea is the journey planner will use the Google maps API or some similar service to plot the journey. There must be some type of XML data (JSON in case of google?) transfer. So my question is does anyone know what type of data might be exchanged between the web services of a company and the map providing company? Is there any standard XML schema for that? I hope the question didn't got too confusing. Thank you. 6pandn21

Member Avatar
+0 forum 0

Hi, I am trying to develop a website that displays a google map and some markers that I want to add from my SQL Server Database. I have tried to get the values(Latitude and Longitude) from the database in the asp.net and pass them to javascript to add a marker to the map. The asp code I have is: [CODE] <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" SelectCommand="SELECT * FROM [Component]"></asp:SqlDataSource> <input type="hidden" id="lat" value="<%#Eval("Latitude") %>" /> <input type="hidden" id="lng" value="<%#Eval("Longitude")%>)" /> <div id="map_canvas" style="width: 100%; height: 450px"> </div>[/CODE] And then the javascript that creates the map: [CODE] function initialize() { …

Member Avatar
+0 forum 0

This has started earlier than I expected. American readers will be quite used to the idea that in many areas if you go to Google Maps you'll find pictures of the street as well as maps. Personally I think this is a good thing; only two days ago I was heading to a meeting, I had the address but the street was too small to be named on my map and a pic of the building would have been great. I can have that now. Unless, of course, the new [URL="http://www.out-law.com/default.aspx?page=9889"]legal challenge[/URL] takes off and becomes part of UK law. …

Member Avatar
Member Avatar
+0 forum 1

The group [URL="http://www.stopinternetpredators.org/"]Stop Internet Predators[/URL], claiming that the Street View 360-degree technology can be used by pedophiles to help stalk their victims, is recommending that municipalities "[b]an Street View from your neighborhoods until it is safeguarded to ensure children's safety and privacy." How Google is supposed to do that, the organization doesn't say. "Street View could make it simple, for example, for anyone to map the most likely route your child walks to school, calculate the distance between your front door and the school bus stop, view images of the different entrances to community parks, and even find the location …

Member Avatar
Member Avatar
+0 forum 1

In what has to rank as one of the most surprising outbursts of the summer, the [URL="http://news.bbc.co.uk/2/hi/uk_news/7586789.stm"]BBC[/URL] reports how the president of the British Cartographic Society has blasted online maps and accused them of "demolishing thousands of years of history." The remarkable rant took place at the Institute of British Geographers conference in London. During her speech, Mary Spence is said to have taken aim at Internet mapping services for "wiping the rich geography and history of Britain off the map." The argument appears to be that while online maps are great for driving directions, they suck when it comes …

Member Avatar
Member Avatar
+0 forum 2

With gas still hovering at $4 a gallon, the Arctic ice caps melting, and our waistlines expanding, walking is more important than ever. But how to figure out whether a particular home or work location is a good one for walking? Well, there's a way. [URL="http://www.walkscore.com/"]www.walkscore.com[/URL] is another one of those wonderful Google Map applications. You give it an address, and it looks at the various businesses in the area and calculates a "walkability score" based on the availability of common services within walking distance. Needless to say, cities tend to be more walkable than the country, and [URL="http://news.google.com/news?hl=en&ned=&q=walkscore&ie=UTF-8&scoring=n&sa=N&start=0"]a number …

Member Avatar
+0 forum 0

The End.