Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Find City, State (or province) Country for USA or international
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
dsadaka  
View profile  
 More options Jun 1 2011, 12:37 am
From: dsadaka <d...@web-site1.com>
Date: Tue, 31 May 2011 21:37:49 -0700 (PDT)
Local: Wed, Jun 1 2011 12:37 am
Subject: Find City, State (or province) Country for USA or international
Hello there,

I've been assigned the task of finding and displaying (text only) the
City, State (province) and Country given the lat and long.  (This is a
Ruby on Rails app and I'm getting the lat and long from EXIF data.)

I've been playing with the different reverse geocode lookups but don't
seem to have a consistent way to do this globally.  It looks like the
extendedFindNearby is the way to go for the USA but it get's much more
complicated when non-US.

Has anyone done this?  If so, can you tell me how?

TIA,
Dan


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dylan Kuhn  
View profile  
 More options Jun 1 2011, 8:46 am
From: Dylan Kuhn <dylan.k.k...@gmail.com>
Date: Wed, 1 Jun 2011 05:46:06 -0700
Local: Wed, Jun 1 2011 8:46 am
Subject: Re: [GeoNames] Find City, State (or province) Country for USA or international

Hi Dan,

I think you can do two calls, first to countrySubdivision for the country
and administrative area 1, then grab the place name from
findNearbyPostalCodes for city.

-dylan-


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
dsadaka  
View profile  
 More options Jun 2 2011, 1:24 pm
From: dsadaka <d...@web-site1.com>
Date: Thu, 2 Jun 2011 10:24:50 -0700 (PDT)
Local: Thurs, Jun 2 2011 1:24 pm
Subject: Re: Find City, State (or province) Country for USA or international
Dylan,

I ended up doing one call (much faster than two) to extendedFindNearby
and parsing through to handle the three following cases:

If "address" node exists -> USA
elsif "geoname" exists -> International so I used last geoname in list
elsif "ocean" node exists -> get name of ocean

Thanks,
Dan

On Jun 1, 8:46 am, Dylan Kuhn <dylan.k.k...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »