google maps gives the wrong position

44 views
Skip to first unread message

Iswara Gozali

unread,
Dec 1, 2011, 4:19:43 AM12/1/11
to google-map...@googlegroups.com
Hi guys, I have just started working with google maps API for my website, basically I wanted to make a fare calculator using by google maps to measure the distance.

Everything is working fine or so I thought. Apparently it gives me the wrong places, and I have no idea why this is happening. For your information, I set it so that every address query ends with the string " Jakarta", since that's where the fare calculation is supposed to be done.

For example, I did a fare calculation from "menara mulia" to "plaza senayan". the origin is the right one on the map, but the destination is not. It's supposed to be a mall, but instead I got a road "Jalan Senayan" (jalan is indonesian of road).

This is the link to the website http://www.go-jek.com/cek_harga.html

I would really appreciate your help here, cheers.


Iswara Gozali

Rossko

unread,
Dec 1, 2011, 3:57:40 PM12/1/11
to Google Maps JavaScript API v3
> This is the link to the websitehttp://www.go-jek.com/cek_harga.html

The search for "plaza senayan Jakarta" returns two results
[0] "Jalan Senayan, Jakarta Capital Region, 12180"
[1] "Jalan Plaza Senayan 1, Jakarta Capital Region 12220, Indonesia"
They both come up as partial matches, the geocoder isn't able to
decide which one you meant. It's your code that chooses the first
one.

Searching at maps.google.com is different because it also searches
e.g. business listings, many businesses appear to describe themselves
as being at "Plaza Senayan"

Reply all
Reply to author
Forward
0 new messages