How do I store locations in neo4j to make geography based search better -


i have nodes

    (p: program)-[:deployed_at]->(l : location) 

a program can deployed @ location. information storing in location node getting google place autocomplete api. have search programs using location. , user can search location can either country, state, city or locality. want know , how place info should stored in location node make search better. search like, if searching "india" should show me programs deployed in "india", if searching state "karnataka" should show me programs deployed in "karnataka" , same city , locality. firstly thought store country, state city, lat, long in location node , when user search particular location "bengaluru" fetch city, state , country searched location , give result. difficult fetch city, state , country searched location specially in case of locality. don't want restrict search india have store location in such way should support location search . storing city, state, country fail in many cases. curious know how sites airbnb, housing store location based information. comments , suggestions welcome.

thanks in advance


Comments

Popular posts from this blog

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

apache - How do I stop my index.php being run twice for every user -