I have a list of canadian postal codes that I want tobe able to map on google maps. SO far I have only found this site :
http://batchgeo.com/ | My Attempt and what I want - http://batchgeo.com/map/3b634fc7cbf942db14284c925ff8631b
How can I achieve the same on my own? Can someone share a script?
I'm not sure if you can do the circles like batchgeo- I've never seen that with google maps before. But you can certainly map out multiple places and drop pins on each place.
Check out google's Maps API, it has a lot in there to help you get started, and is all javascript.
have a look at the google maps v3 api for reverse geocoding. This should give you the needed information to place markers on the map
Related
Google Maps now includes an "Earth" setting similar to the Google Earth Plugin. I was hoping to replace the Google Earth Plugin with this feature since it has more modern touch interaction and is continually being updated, but it's not built into the Google Maps API so far as I can tell.
I've done a fair amount of searching on it, but I've only ever gotten results for the Google Earth Plugin API and the Satellite view in Google Map, which doesn't give me the 3D globe that I'm hoping for.
Is there any way to accomplish the Google Earth Style globe like Google has in a simpler way than drudging through and trying to make sense of the minified javascript on the Google Maps site?
No, at least not with the Google Maps API at the present time. 'Earth' is not one of the supported map types yet; see
https://developers.google.com/maps/documentation/javascript/reference#MapTypeId
For a school project we are making an application that can track the location of a garbage truck.
To calculate the fastest direction for the truck we are using the Google Maps embed API, but there is one "problem". The API returns 3 optional directions but we only need one.
Is there an possibility to show only one direction, or do we need the JavaScript API of Google Maps then?
Thanks in advance.
I suggest using the Google Maps JavaScript API. I am using it for my website and it works like a charm, with many functionalities.
Back with another google maps V3 question.
Here’s the background; I now have a map populated by a number of markers with info windows and what I want to do is add a link in the info Window that when pressed opens another browser window with google maps directions info in it.
I'v read a number of tutorials including the one by Mike Williams but most of them are either written for V2 of the API or just plain don’t seem to work, so do any of you good people know of a good noob tutorial that can give me some idea how to do this?
Thanks in advance
If you're just trying to send folks to http://maps.google.com for a directions query, a URL like http://maps.google.com/maps?saddr=Start&daddr=end might work, but I don't think there's any official documentation on those URLs.
If you want to have directions as part of your application, you should probably take a look at some examples of the Direction Service in the JS API.
I'm trying to set a border around some districts in the UK, similar to how Google do it on here : http://g.co/maps/wbtj3
Does Google release the latitude and longitude data for districts? I cannot see anything in the API which will allow me to search for a district and get the data for it to display on the map.
Is there an easy way to "extract" the latitude and longitude data for a district for use in an polygon?
It seems that American data is easier to find (http://econym.org.uk/gmap/states.xml) or am I not looking hard enough?
Appreciate any advice :).
Edit: I believe it's pretty new as I can't find much info about it "highlighted search results" - http://googlemapsmania.blogspot.com/2012/01/highlighted-search-results-in-google.html
OpenStreetMap has boundary data for English Counties which are free to use and available in multiple formats.
As far as I know, Google does not provide any underlying map data via an API.
Getting co-ordinates for a polygon would require GIS files and a GIS software like MapInfo to read.
My advice would be visit this site;
http://bbs.keyhole.com/ubb/ubbthreads.php?ubb=showthreaded&Number=332073
Download the KML file which has the district boundaries of UK counties and then use it in either google earth or fusion tables.
Finding out what your using these for may help get a better answer...
I think you'd have to figure out the polygon coordinates yourself. If it was only for a few districts, maybe not such an onerous task. But if it's for the whole of the UK... Here's a website that will quickly give you coordinates as you draw polygons:
http://www.birdtheme.org/useful/v3tool.html
afaik google doesn't offer such service in his APIs. But you could download you file of interest here: http://www.gadm.org/country
if you grab it as kml, you could easily import it into Google-Maps.
Just came across this thread - you may have solved the problem a long time ago, but this may be useful:
http://mapit.mysociety.org/
I am trying to embed a Google Map into a dynamic webpage. The only variable the map depends on is the address of a business. That address comes from the website's database. I cannot just statically generate embed code for each dynamic page using the same set up. Is there a way I can embed a map based on that address and show a marker/bubble showing Google's information on that business?
So far, I have explored a few options including using the Google Map API and the Google Data API or just messing with the embed code given by Google. If I use the APIs it seems I have to design my own types of markers and maybe even supply my own data.
It doesn't look like there is an easy solution.
Any ideas?
Thanks.
EDIT: I'm not hung up on going from an address to a longitude and a latitude. I want the info window or "bubble" for a marker to show Google's information of a business.
EDIT: On Roy's suggestion I have been trying to use the map and search API together to achieve what I want. However, the only way I can execute a search with searchControl.execute('business name here'); is if the SearchControl is drawn. Thing is though I don't want to show any search controls. I have been able to hide it, but that just seems like an inefficient hack way of solving this.
Don't just use the embed code. Write a bit of Javascript that will draw a map for you and pass it the address.
Loads of examples here:
http://code.google.com/apis/maps/documentation/examples/index.html
I'm not sure which bit you're stuck on, but you don't need to design your own markers. Google can also create a marker from an address and it can find local business information if it has it (using local search API I think).