On Feb 25, 7:55 pm, "Vrishali...." <[email protected]> wrote:
> Hi.........
>
> First of all thanks Larry for help. But I am still having problems.
>
> Actually the code i posted earlier...is the hash of ruby...
That isn't particularly relevant in this group. This group is about
the Google Maps API (html & javascript). While someone here may know
ruby, I just look at the html and javascript on the map that you post
a link to...
(except you didn't)
>
> {:address=>'150 Church st, San Francisco,
> CA',:description=>'Church',:image=>'/images/4.jpg'}
>
> I have got the code from net for it. It is working properly.
> But if I put...
>
> {:address=>'1337/13 Fergusson College Rd, Pune,
> INDIA',:description=>'Abcde',:image=>'/images/4.jpg'}
>
> then it doesnt returns longitude n latitude for it. So what should I
> do now....
> Or is there any code available for it...using Rails..
>
> Please, anybody can help me????
Don't know why it doesn't work for you.
http://www.geocodezip.com/example_geo2.asp?addr1=1337/13%20Fergusson%20College%20Rd,%20Pune,India&geocode=1
It works for me (at least it returns a set of coordinates for that
address)
Doesn't look like it understands the street number.
{
"id": "p1",
"address": "Fergusson College Rd, Pune, Maharashtra, India",
"AddressDetails": {
"Accuracy": 6,
"Country": {
"CountryNameCode": "IN",
"CountryName": "India",
"AdministrativeArea": {
"AdministrativeAreaName": "Maharashtra",
"SubAdministrativeArea": {
"SubAdministrativeAreaName": "Pune",
"Locality": {
"LocalityName": "Pune",
"Thoroughfare": {
"ThoroughfareName": "Fergusson College Rd"
}
}
}
}
}
},
"ExtendedData": {
"LatLonBox": {
"north": 18.5314765,
"south": 18.5152963,
"east": 73.8454883,
"west": 73.8391931
}
},
"Point": {
"coordinates": [
73.8411552,
18.5236943,
0
]
}
}
-- Larry
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---