Using google map to add your address for your profile - google-maps

I've got a site where people can add their profile and on that page I ask them their address but I would like them to be able to use the google maps search that you find at http://maps.google.com/ to enter their address.
To give you a better understanding its for a charity group so when the charity group wants to have a event they want to enter they address of the event and then when users come on the event page they want to see the google map of the location.
So I want to make sure that when the charity add its event location and save it that when the user come to see the event map that google can understand the address that was entered by the charity. I can of want to have them (charity) to validate the address with google maps before they save it and this way they will be sure that the user will see it properly.
I'm using coldfusion cfmap to show the map and has you can see the var address_saved_by_charity will be populated by what the charity entered:
<cfmap name="eventLocation" centeraddress="[address_saved_by_charity]" zoomlevel="13" markerwindowContent="" width="600" overview="true" />

Why would someone type their address in google maps if they can just put it into your form? Do you need additional data from the Geolocation? If so, I can see how this is useful but you could always get the address from your own form fields and do a valid URL to call the api.
In any case you can look at Geocoding and the google maps api. Geocoding lets you get a position using "123 abc street city state" etc.
Hope that helps

Are you trying to get them to enter their current location or their home address? There are a lot of mobile users these days and their current location is not equal to their address. You can achieve either. Some things to look at are javascripts geolocation API and google maps v3 API. I recently have been working with these. Here are a few links to get you started:
http://blog.bobcravens.com/2010/10/trip-recorder-using-javascripts-geolocation-api-and-google-maps/
http://blog.bobcravens.com/2010/06/a-google-maps-version-3-jquery-plugin/
Hope this helps.
Bob

Related

google reviews with places API - no data for business with hidden address?

I was trying to embed google plus reviews on my website using the google places api. The following link is the process I used to set this up.
http://gurutechnolabs.tumblr.com/post/112214772991/how-to-embed-google-reviews-using-google-places
When I enter https://maps.googleapis.com/maps/api/place/textsearch/json?key=yourAPIKey&query=YourPlace into the browser I don't get any data when I enter my business name. I do get data when I enter a different business name. I suspect the issue is my business address isn't public as I serve customers only at their location. Is this the issue and any way to use this feature with a hidden address? Thanks in advance.
If your business is defined as Service Area Buiseness, it will not be accessible via Places API search or Places API autocomplete.
If this is feasible, try to change the type of the business in Google My Business. Not sure if it will be possible to extract reviews by a place ID, however, it's not easy to figure out what is the place ID of your business.
Can I have the link to your business in Google Plus for further investigation?

Link to street view URL using address?

Is it possible to link directly to street view from an URL using only the address (and not lat/lng)?
For example, is there a way to do something like
http://maps.google.com/maps?q=&layer=c&address=Street,number,state&cbp=11,0,0,0,0
Instead of
http://maps.google.com/maps?q=&layer=c&cbll=31.335198,-89.287204&cbp=11,0,0,0,0
?
Lat/lng from geocoding tends to not be recognized by street view as being too far from a street, sometimes getting the wrong street altogether, because the lat/lng it generates may be off the street, as it tries to match the location of a house.
I have looked everywhere and even tried playing with google's URLs on my own, but I can't find anything on it. Most sources won't even mention address. I'm currently using the url sample from this question, but it still isn't really what I'm looking for.
If this is really not possible, could someone link to a source/documentation where it says so?
Edit: Thank you everyone for the answers, but none really address the issue with street view and addresses. I'll look into forwarding this to google. I'll post here if I get a reply.
Let's enhance your code, if you paste the code in browser then you will be redirect to google maps and will show result what you requested.
http://maps.google.com/maps?&q=Space+Needle,Seattle+WA
If you would like to pass the value (address) via php or any other code type then simply it will not work, you cannot use google maps without API to enhance your requirement. Lat & Lng is basic practice to show map and not require any api, but if you would like to pass additional properties then you will have to use google maps api to do so. Detailed documentation can be found here
https://developers.google.com/maps/documentation/embed/guide
but let's try an example try this code in browser
https://www.google.com/maps/embed/v1/place?q=Mumbai,+Maharashtra,+India
You will get an error that api key not found but if you try this one
https://www.google.com/maps/embed/v1/place?key=AIzaSyD4iE2xVSpkLLOXoyqT-RuPwURN3ddScAI&q=Space+Needle,Seattle+WA
Then you will get output. Hope it helps!
First reverse geocode to find the lat lng using another Google Service API.
Then feed the resulting lat lng into the streetview endpoint parameter.

Nearby Places, Distance and Route between two places using Google Maps API for Web

I am developing a website which uses Google Maps place API to get an area from the user and need to show nearest restaurants, hotels,etc. I also need to show the distance and route between those places from the user selected area.
Can anyone help me to give some suggestions, links, or a tutorial to do that?
Well, I coundn't provide you all codes, but i can help you to build code, Kindly follow the following guidance. It might be help you.
Basically you required two APIs for this solutions:
1) Google Directions API
2) Google Places API
3) Javascript - GEOLocation (auto detect user location, Works if website hosted with ssl cert - https )
Step 1:
Here first you need to detect user current location from browser (using HTML5 navigator.geolocation ):
http://www.w3schools.com/html/html5_geolocation.asp
Step 2:
Now you required to search nearby hotels,restaurants, etc using Google Places API. Please check following doc where you can see that places api required location coordinates as a input and will respond you accordingly,
Web Service API Doc OR JavaScript API Doc
Step 3:
Directions API will works on between two points, So here it's better to build dynamic route between two Points (user location and particular restaurant/hotel/etc location) using Direction API. You can build route using marker click event.
Google Direction API - Javascript Example
I hope that i have tried to explain better as i can, Kindly ignore formatting and spelling mistakes, Just focus on step i given, Ignore other stuff!!

Google places maps Api web service post new place

I just posted 2 places with the Add Place API.
I used this model and got a success status confirmation by the webservice and then for each I got an id, and place_id, reference, scope and status
But the problem is I cannot see my new places on the google maps interface. where can I find my places to check if everything is right?
if you take a look at the documentation:
When you add a place, the new place is available immediately in Nearby Searches initiated by your application. The new place also enters a moderation queue to be considered for Google Maps. A newly-added place does not appear in Text Search or Radar Search results, or to other applications, until it has been approved by the moderation process.
Which means everyone can add their own places for the own use. But in order to have your place visible to other apps or the Google Maps, it needs to pass the moderation process. If your places did not show up after a week or so, then probably it didn't make it through.

Website; let user add location and get coordinates

I've been developing a website where users can add a place (say a store in a city) and it is stored in a database. Now I would like to be able to display these places on a interactive map on my website. I got a bing maps developer key but it seems i can only display the data if i have the coordinates (lon/lat). Is that true? And if so, how do I get the coordinates automatically once a user adds new data?
As an example: You add Store XYZ in City XYZ, but you DON'T have to enter the coordinates. Now, this info is stored, but I don't have the coordinates..
Any help is much appreciated!
If you don't have any plans on allowing your users to insert place locations in a map or by filling some lat/long data, I suggest you to use google web services to get geolocation of those places. You'll need to format the input you send into something like an address to get it working properly though.
See this Google documentation