I'm looking for a way to get exactly the same indoor panoramas for businesses Google is showing in [Google maps] (can't add any more links).
What I did:
google.maps.StreetViewService class requires either lng/lat or pano ID, so...
- convert business address to lng/lat using google.maps.Geocoder (issues occured, see below)
e.g.Richard-Wagner-Str. 7, 04109 Leipzig, Germany
- convert business to lng/lat using google.maps.Place (issues occured, see below)
e.g.Park Hotel, Richard-Wagner-Str. 7, 04109 Leipzig, Germany
- thanks to this post I found a way to get pano ID for a certain address
Issues:
None of this was working as I hoped for...
- get indoor panorama by converting business address to lng/lat:
found resulting panorama to be wrong business at same address (got restaurant, wanted hotel) --- and no, there was no resulting array with multiple entries - get indoor panorama by using whole search term with places API:
got slightly different lng/lat but was outside panorama instead of inside - get indoor panorama by pano ID:
working fine but still was outside panorama
Questions:
- It must be working. Somehow. Any idea how Google's doing the job? (check with Google maps, review box on the left: using address responds with same outside pano Google shows as well. But how to get corresponding inside pano?)
- How to make sure a pano is inside, not outside?
- Quite often, Google offers multiple indoor panos for a certain business. Any suggestions how this may work?
- documentation of http://developers.google.com/places/place-id#id-overview says, place-id
"... can be used with Google Maps Javascript API ..."
Any idea why not working with street view panos?
Many thanks!
Update
Making my questions more precise:
- How do I get same indoor panoramas as Google does?
- How do I get more than just one panorama per business (as Google does)?
- Any chance to make street view work with Google Places place_id?