Finding Approximate Location

Jul 17, 2010 at 12:42 PM

Hello Sir,

                  I want to add approximate feature as we have in Google map. How shall I do that???

 

 

Regards,

JankCD

Jul 17, 2010 at 12:48 PM

?

Jul 17, 2010 at 12:59 PM

Hmmm if we have a latitude and longitude I want to find the near by location. Suppose i have my longitude and latitude near football ground it will show an approximate location of near by road as we have in Google map. When we search in Google maps and give latitude and longitude it will show the exact location with approximate (A) location that only I want.

 

Jul 17, 2010 at 4:04 PM

i don't know, maybe it's possible, just need to analyze all google services, but it's not very interesting for me to do ;]

Jul 17, 2010 at 5:02 PM

Need call 2 google URLs:

1. http://maps.google.com/maps/nav?key=GOOGLE_KEY&output=js&dirflg=d&hl=GB&mapclient=jsapi&q=from:LAT,LNGto:LAT,LNG

Responce will in json format. From it need take address from first placemark and call next URL

2. http://maps.google.com/maps/geo?output=json&oe=utf-8&q=ADDRESS&ll=from:LAT,LNGto:LAT,LNG&spn=0.2%2C0.2&key=GOOGLE_KEY&mapclient=jsapi&hl=en

Responce in json format.

 

Jul 22, 2010 at 11:56 AM
Edited Jul 22, 2010 at 11:56 AM

Thanks For yr post,We have tried this one but in first URL

 

http://maps.google.com/maps/nav?key=GOOGLE_KEY&output=js&dirflg=d&hl=GB&mapclient=jsapi&q=from:LAT,LNGto:LAT,LNG

 

we have given GoogleKey and Lat,Lang point but i don know wat should be passed in

 

to:LAT,LNG

 

 

Jul 23, 2010 at 11:01 AM

Same Latitude, Longitude as for from

Somthing like:

from:1.0023,2.0012to:1.0023,2.0012

Jul 26, 2010 at 8:09 AM

Thanks for the reply. We tried as your saying 


http://maps.google.com/maps/nav?key=GoogleKey&output=js&dirflg=d&hl=GB&mapclient=jsapi&q=from:1.0023,2.0012to:1.0023,2.0012

 

But we are getting the response as:

{"name":"from:1.0023,2.0012to:1.0023,2.0012","Status":{"code":400,"request":"directions"}}

status is 400 that is bad request!!!!


I'm sure somewhere we are taking it in wrong way. So could you plz help us?????


Regards,
JankCD
Jul 26, 2010 at 9:50 AM

1. Google key - must be

2. point must be not in ocean.

3. Not forgot URL param encode.

Somthing like that:

http://maps.google.com/maps/nav?key=ABQIAAAAjAqPr6ulHq8uIG5f1Zf4JRTcdGPhFtFfp_WL1D1N10ngd8KVZxT09kcRmvXQ721pG6W6enXqBG2yog&output=js&dirflg=d&hl=GB&mapclient=jsapi&q=from%3A51.801215%2C5.24895+to%3A51.801215%2C5.24895