GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Geonames MongoDB admin code structure suggestions  XML
Forum Index -> General
Author Message
sz1a



Joined: 11/10/2012 09:33:31
Messages: 3
Offline

Hello all,

First off thank you for such a wonderful gazetteer database.

I am creating a mobile app that will let people search all geoname cities hosted in a mongoDB.

I have created a database from AllCountries.zip. Using MongoDb is great when using the geospatial index for really fast location-aware queries.

Regarding admin codes, I am debating whether or not to store them in each document or use a dictionary in the mobile device.

For a search of "Los Angeles, CA" there is no easy way of finding the record with MongoDB since the dictionaries reside in the mobile device. MongodB can only search one collection at a time so having several collections with admin codes doesn't work either. Storing admin code content in the document would severely increase the database size however.

Is there a recommended course for using admin codes with MongoDB?

Many thanks!
 
Forum Index -> General
Go to:   
Powered by JForum 2.1.5 © JForum Team