Reputation: 1054
Am Using google Direction Service to find map the Two Address stated Below
var start = "2115 First Avenue SE Unit 1306, Cottage Grove Place, Cedar Rapids, IA, 52402"; //Set the source/ origin
var end = "6126 Rockwell Dr. Apt 128, Keystone Place, Cedar Rapids, IA, 52402";
On select it Via Google maps Direction directly it works fine
It not working as same while using Direction Service. Find below example
http://jsfiddle.net/MRHQ4/291/ (Credits to Author :Shreerang Patwardhan)
It works fine when i remove Address2 from Source and Destination
Upvotes: 1
Views: 426
Reputation: 38
'Cottage Grove Place' and 'Keystone Place' are not the address2, these are place names (or you can say place title), just move them to start of the address (no other change) like following, and it is working fine:
var start = "Cottage Grove Place, 2115 First Avenue SE Unit 1306, Cedar Rapids, IA, 52402"; //Set the source/ origin
var end = "Keystone Place, 6126 Rockwell Dr. Apt 128, Cedar Rapids, IA, 52402"; //Set the destination
I tested and it is working fine, please review, thanks.
Upvotes: 0
Reputation: 1536
Unit and apartment information can cause parsing issues in the geocoder. If you can, try to remove them as best as possible. Change the addresses to
var start = "2115 First Avenue SE, Cedar Rapids, IA, 52402"; //Set the source/ origin
var end = "6126 Rockwell Dr, Cedar Rapids, IA, 52402";
and you'll see it working better.
Upvotes: 1