Map Highlight Odd/Even Side of Street

2019-05-28 06:39发布

问题:

I have two coordinates of a street. Either both Odd or Even. So for example 15 ABC Street and 77 ABC Street (with their reverse geocode).

I'm trying to draw a path line that is near the sidewalk.

I used google maps api and did not find a way to do it. The directions api draws a line in the middle of the road, and I cannot find a way to do a geometric translation to either side of the street.

I don't mind using any other API as long as I can solve the problem.