Altimus Prime
Altimus Prime

Reputation: 2327

How to show the street view of an address when I don't have latitude and longitude

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

Answers (1)

radu-matei
radu-matei

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

Related Questions