Google Directions Service API 3 Return Wrong Result to Map -


am using google direction service find map 2 address stated below

var start = "2115 first avenue se unit 1306, cottage grove place, cedar rapids, ia, 52402";     //set source/ origin var end = "6126 rockwell dr. apt 128, keystone place, cedar rapids, ia, 52402"; 

on select via google maps direction directly works fine

link :https://www.google.co.in/maps/dir/keystone+place-blair's+ferry,+6126+rockwell+drive+northeast,+cedar+rapids,+ia+52402,+united+states/cottage+grove+place,+2115+1st+avenue+southeast,+cedar+rapids,+ia+52402,+united+states/@42.0179234,-91.6739759,13z/data=!3m1!4b1!4m13!4m12!1m5!1m1!1s0x87e4f0459aacb105:0x63c416fc0edc61d6!2m2!1d-91.6475339!2d42.039779!1m5!1m1!1s0x87e4f0d795c1b96b:0xa1ccbbf6400b01aa!2m2!1d-91.6362972!2d41.9959428?hl=en

it not working same while using direction service. find below example

http://jsfiddle.net/mrhq4/291/ (credits author :shreerang patwardhan)

it works fine when remove address2 source , destination

unit , apartment information can cause parsing issues in geocoder. if can, try remove them best possible. change addresses

var start = "2115 first avenue se, cedar rapids, ia, 52402";     //set source/ origin var end = "6126 rockwell dr, cedar rapids, ia, 52402"; 

and you'll see working better.

reduced address information

with neighborhood information

with apt/unit information


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -