Reputation: 2327
There's another post here about showing the google streetview of an address but all the links are broken.
From looking at what they were doing, would I have to geocode the address and then look up the street view for those coordinates?
If all I have is an address, and I need to programmatically show the street view of the house, what is the most direct way to accomplish it?
Thanks
Upvotes: 0
Views: 267
Reputation: 3520
Basically, what you said is correct. You feed the geocoder the address and it gives you back a JSON containing the full name along with the coordinates.
Response example from the geocoder: https://maps.googleapis.com/maps/api/geocode/json?address=1600+Amphitheatre+Parkway,+Mountain+View,+CA
And now you have the coordinates which you can use to feed the street view.
https://developers.google.com/maps/documentation/geocoding/intro
https://developers.google.com/maps/documentation/streetview/intro
Hope it helps:)
Upvotes: 2