Link to street url using address?

Is it possible to directly link to a street view from a 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

 http://maps.google.com/maps?q=&layer=c&cbll=31.335198,-89.287204&cbp=11,0,0,0,0 

?

Lat / lng from geocoding, as a rule, is not recognized by the street, because it is too far from the street, sometimes receiving the wrong street, because the lat it generates can be on the street, because it is trying to match the location of the house.

I searched everywhere and even tried to play with Google URLs myself, but I can't find anything on it. Most sources do not even mention the address. I am currently using a sample url from this question , but this is still not quite what I am looking for.

If this is really not possible, can someone link the source / documentation where he says so?

Edit: Thanks to everyone for the answers, but no one addresses the issue of street browsing and addresses. I will redirect this to google. I will write here if I get an answer.

+5
source share
2 answers

The first reverse geocode to find lat lng using another Google service API .

Then pass the resulting lat lng to the streetview endpoint parameter.

+1
source

Letโ€™s improve the code, if you paste the code into the browser, then you will be redirected to Google maps and show the result that you requested.

http://maps.google.com/maps?&q=Space+Needle,Seattle+WA

If you want to pass the value (address) via php or any other type of code, then it just wonโ€™t work, you wonโ€™t be able to use Google maps without an API to increase your requirement. Lat and Lng is a basic practice for displaying a map and does not require any api, but if you want to pass additional properties, you will have to use google maps api for this. Detailed documentation can be found here.

https://developers.google.com/maps/documentation/embed/guide

but try an example try this code in a browser

https://www.google.com/maps/embed/v1/place?q=Mumbai,+Maharashtra,+India

You will receive an error message that was not found, but if you try this

https://www.google.com/maps/embed/v1/place?key=AIzaSyD4iE2xVSpkLLOXoyqT-RuPwURN3ddScAI&q=Space+Needle,Seattle+WA

Then you will get the result. Hope this helps!

+1
source

All Articles