-1

In Maps API, is there a way to snap markers to the street? Normally, if you want to set a marker by address (not latlng), the marker is set somewhere inside the building. In my case, this is an issue if you have e.g. a large mall with several shops. I'd prefer to set a marker on the street.

I'm using Maps API v3.

Many thanks!

  • related question: [Google Street View JS gives me a view of the side of the house instead of the front](http://stackoverflow.com/questions/30380616/google-street-view-js-gives-me-a-view-of-the-side-of-the-house-instead-of-the-fr) – geocodezip Mar 14 '16 at 15:07
  • duplicate of: [Google maps api - snap marker to nearest road](http://stackoverflow.com/questions/16696502/google-maps-api-snap-marker-to-nearest-road) – geocodezip Mar 14 '16 at 15:09
  • thanks geocodezip - the second link did it! didn't find that one by myself - my bad. – user2931500 Mar 15 '16 at 17:10

1 Answers1

0

Use the directions service. Request directions to/from the same location, should be on the road closest to the location.

See related question: Google maps api - snap marker to nearest road

Community
  • 1
  • 1
geocodezip
  • 158,664
  • 13
  • 220
  • 245