Engagement.
Becky and I are now engaged to be married.
( Read more...Collapse )
Let me explain.
I was using their reverse geo-coding service. That is I give them a latitude and Longitude and they give me their best guess at what the address is there.
So I get it all worked out for the US. I was easily getting the street, city, state, and postal code. Then I figure lets see what happens if we go to Mexico. And I start getting all these undefined varibles. I do a little diagnositic work on what is going on. It seems that Google returns a different JSON structure of elements depending on what country you are in. Examples always help so:
In the US to get the city from the data you would have something like this:
response.country.administrativearea.suba
In Mexico to get the city from the data you would have something like this:
response.country.administrativearea.loca

| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
| 1 | 2 | |||||
| 3 | 4 | 5 | 6 | 7 | 8 | 9 |
| 10 | 11 | 12 | 13 | 14 | 15 | 16 |
| 17 | 18 | 19 | 20 | 21 | 22 | 23 |
| 24 | 25 | 26 | 27 | 28 | 29 | 30 |