Google Maps API V3 Store Locator - google-maps

I'm trying to create a store locator for my work. I've seen this done before using Google Maps API V2, but have not seen a good example using V3.
Here's a mockup of what I'm aiming to get working: http://imgur.com/eKMwo
I think it's a pretty simple concept, but what I'm having trouble getting to work is the parts pertaining to the stores themselves.
Does anyone know of any examples, tutorials or demos of something similar to the image linked above?

Edit: This related question may help you debug when making a store locator: Google Maps API - geocode() doesn't return lat and long
The V3 API for a store locator is horrible!
I used this and many functions weren't defined.
Everything was going fine for me until I got to the XML parsing, then Google's API started breaking on me. Absolutely deplorable, IMHO.

Actually, there is a V3 version of this article.
http://code.google.com/apis/maps/articles/phpsqlsearch_v3.html

I followed this documentation for creating a store locator: http://storelocator.googlecode.com/git/index.html

I used the Google Code one (maybe that's the one you already saw)..
http://code.google.com/intl/sv-SE/apis/maps/articles/phpsqlsearch.html
Granted it's for API V2 but its actually very easy updating it to API V3.. Just have look at he API V3 reference when in doubt..
http://code.google.com/intl/sv-SE/apis/maps/documentation/javascript/reference.html

I use this this API as it makes it real simple, can do a store locator in couple of hours
http://www.ehoundplatform.com/developers/documentation-developers/store-locator-using-freehound-and-google-maps-v-3

Related

keep private google indoor locations

Once again, I'm trying to deal with something not really well documented on Google Maps API.
I'm doing a small webapp which would require to be able to map indoor areas BUT I've to keep them private.
For now, I don't find any informations related to this question.
I've found many quite similar questions on stackoverflow which seems to feet my needs regarding the title, BUT once I read the question, everything is related to Android or IOS however, I'm looking to do this on a regular WebPlatform using Maps APIs provided for this plateform.
If anyone as a hint, it will really help so, thanks in advance.
The documentation for custom StreetViews you find on https://developers.google.com/maps/documentation/javascript/streetview#CustomStreetView
Keeping the images private is not hard to achieve, the images are loaded directly by the client, so you may e.g. use a serverside script that handles the requests and for example checks for a valid session before it delivers the images.
According to the GoogleMaps community forum (https://support.google.com/maps/thread/124604237/how-can-i-make-indoor-maps-private?hl=en) it is not possible to render google indoor maps private. One solution could be using mapspeople api which uses google maps and draws indoor maps on a top layer, or resort to mapwize which utilizes OpenStreetMaps as a base map to draw indoor maps layers on.
https://www.mapspeople.com/mapsindoors/
https://www.mapwize.io/
note that mapspeople requires payment, while mapwize has a very basic free version.

GWT + Google Maps API v3

I need Google Maps API v3 calls in my GWT Project, more specifically an Autocomplete-Feature for Places like in Google-Maps and the DirectionServices.
We already tried 2 approaches to get v3 access, but none was satisfying:
Using the GWT SuggestionBox Widget + Geocoder suggestions. This solution is very slow and even worser, the constraints you can put on the suggested Places is just country codes (e.g. "uk") and, even worse, it seems to be not working.
Google Maps API v3 Wrapper for GWT done by branflake2267. There seems to be a conflict between the wrapper and the already existing (older) GWT Google Maps API lib. When one tries to remove the Google GWT-maps-api from the project, severe changes would have to be made, since the structure of the API seems different (some Classes are not within the Wrapper).
Does somebody maybe had a similar problem and a solution for this? How can I get the Google Maps V3 API working in my GWT project?
Thank you very much guys for any help on this!
There is an official port of Maps v3 supported by Google which can be found here, but it is still in pre-release.
For more info, look at the comments of this bug.
Be very careful with Maps v3 it has some serious issues when used with the latest GWTversions. It does not appear to use Overlays and uses ArrayHelper all of which cause problems on GWT 2.1 and up..
I've had good luck with the branflake API on GWT 2.8. However, it hasn't been updated in years and still uses API version 3.10. Unfortunately I'm going to have to either for it and take on maintaining my own version of it or find an alternative at some point.
For now, tho, it's still very much a usable solution.
https://mvnrepository.com/artifact/com.github.branflake2267/gwt-maps-api

How can I use Google Maps with Processing?

I want to use Google Maps API with Processing. Until now I was just able to get Google Places data, but I'm struggling with the map itself. I know about other map options, like unfold or modestMaps, but I need Google. In particular because of the directions API in further progress. I've searched this forum and the web, without any help. I thought it should be quite
easy.
How can I use Google Maps with Processing?
I'm not sure about getting a full featured, dynamic Google Maps within your Processing app, but you might be able to modify the Processing library for the Google Weather API to instead use the Directions or Static Maps APIs. http://www.onformative.com/lab/google-weather-library-for-processing/
If you download the source and check out GoogleWeather.java you can see the constructor is calling the WeatherAPI and getting back the XML result. I think you could do the same thing except use the Directions API in it's place.
Here's a post on a Java blog about showing Static Maps API results in Java, which might be translatable into Processing: http://weblogs.java.net/blog/cajo/archive/2010/10/16/adding-google-maps-your-java-application
For something more dynamic, you might be able to adapt JXMapViewer, check out this article: http://today.java.net/pub/a/today/2007/10/30/building-maps-into-swing-app-with-jxmapviewer.html

Do I really need the Google Maps API key?

I am planning to release a commercial website (I have ads there and a shop) which is freely available for everybody. I want to add a google map to show some points of interest. The question is: Do I need the google api key for that or can I just use the iframe code that google gives me? Theoretically that would work, too.
I searched google, but could not find a clear answer...
Thanks :-)
v2 of the Google Maps API is deprecated, so you should ideally use v3.
v3 does not need an API key as mentioned in the documentation.
Since v3 is the official version now, I assume the links given in google maps are for the version. You can always just try and see if embedding the iframe works for you. Though as noted, you can't really customize the map, so you should use the API. It's very simple to set up a basic map (read the tutorial).
You don't need the Google Maps API key as long as you don't plan to include any special or customized maps in your website.
Using the iframe version is fine for basic Maps integration.
The API Key is free anyway, so there is no problem in obtaining one. You should also be free to use the iframe as well, as long as your site is publicly available to everyone without a payed login or anything like that.
As long as you meet Google Maps TOS, you can use both. If you don't meet those TOS, don't use any of it.
A Google Maps API key is required for v2 of the API, not for v3 as far as I know,
and neither for requests to Static Maps API v2.

Google Maps API - Get Coordinates of address

I would like to convert addresses into long/lat.
Is there any way to do this without using JavaScript? Because in my case there is no need to display anything since the conversion is in the background.
What you are looking for is called Geocoding.
Google provides a Geocoding Web Service which should do what you're looking for. You will be able to do geocoding on your server.
JSON Example:
http://maps.google.com/maps/api/geocode/json?address=1600+Amphitheatre+Parkway,+Mountain+View,+CA
XML Example:
http://maps.google.com/maps/api/geocode/xml?address=1600+Amphitheatre+Parkway,+Mountain+View,+CA
Edit:
Please note that this is now a deprecated method and you must provide your own Google API key to access this data.
Althugh you asked for Google Maps API, I suggest an open source, working, legal, free and crowdsourced API by Open street maps
https://nominatim.openstreetmap.org/search?q=Mumbai&format=json
Here is the API documentation for reference.
Edit: It looks like there are discrepancies occasionally, at least in terms of postal codes, when compared to the Google Maps API, and the latter seems to be more accurate. This was the case when validating addresses in Canada with the Canada Post search service, however, it might be true for other countries too.
Geocoding through Javascript:
https://developers.google.com/maps/documentation/javascript/geocoding
A Nuget solved my problem:Geocoding.Google 4.0.0.
Install it so not necessary to write extra classes etc.
https://www.nuget.org/packages/Geocoding.Google/