Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

When I query geoNames for its data, it typically returns the place name in two ways:

1) name and 2) toponymName

What is the difference between them?

Thanks!

share|improve this question
add comment

1 Answer

up vote 7 down vote accepted

From the search documentation:

'name' and 'toponymName'

The response returns two name attributes. The 'name' attribute is a localized name, the preferred name in the language passed in the optional 'lang' parameter or the name that triggered the response in a 'startWith' search. The attribute 'toponymName' is the main name of the toponym as displayed on the google maps interface page or in the geoname file in the download. The 'name' attribute is derived from the alternate names.

So name has been localized based on the language parameter passed along with the query, and toponymName is the canonical name.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.