Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3312554
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T22:00:33+00:00 2026-05-17T22:00:33+00:00

i am developing a dating website, in which users can register from all over

  • 0

i am developing a dating website, in which users can register from all over
the World. The Dating section is divided into cities from again, all over
the World.
The Problem i see here is, i do not have a database that covers all cities
around the Globe.
I am confirming every user by hand so this gives me the opportunity to review
the users city and country.
Main main approach is, giving each city a “city_id” in the Database.

It’s like if a person joins from New York, i give it the id US_NEWYORK
If the person joins from Frankfurt they get the id DE_FRANKFURT

Both of those users still have their own City name in the Database and it’s
written down the same as they wrote it. So for example,

“Frankfurt” instead of “Frankfurt am Main” for the right name or,
“NYC” instead of “New York” for the right name.

This way i can keep every users writing and can give the cities a special id
and run all queries through that ID.

This is my very own solution and i think it’s not so bad. Do you might have
an Idea what i could do better?

I would like to kindly remember, that i would need every city from every country
i’m running this service, if you would like to recommend i would get a database
from somewhere 🙂

Thanks for reading.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T22:00:34+00:00Added an answer on May 17, 2026 at 10:00 pm

    Why don’t you use a geocoding servers like geonames.org or Google’s geocoding API to find a canonical name for locations, and also a latitude/longitude. I assume you need the locations in some sort of canonical form so you can find closest matches, right? Well, latitude/longitude is the way to go there.

    For instance, if you ask Google about “Frankfurt am Main”, like so:

    curl 'http://maps.googleapis.com/maps/api/geocode/xml?address=Frankfurt%20am%20Main&sensor=false'
    

    You get back all this:

    geocode/xml?address=Frankfurt%20am%20Main&sensor=false'
    <?xml version="1.0" encoding="UTF-8"?>
    <GeocodeResponse>
     <status>OK</status>
     <result>
      <type>locality</type>
      <type>political</type>
      <formatted_address>Frankfurt, Germany</formatted_address>
      <address_component>
       <long_name>Frankfurt</long_name>
       <short_name>Frankfurt</short_name>
       <type>locality</type>
       <type>political</type>
      </address_component>
      <address_component>
       <long_name>Frankfurt am Main</long_name>
       <short_name>Frankfurt am Main</short_name>
       <type>administrative_area_level_2</type>
       <type>political</type>
      </address_component>
      <address_component>
       <long_name>Hesse</long_name>
       <short_name>HE</short_name>
       <type>administrative_area_level_1</type>
       <type>political</type>
      </address_component>
      <address_component>
       <long_name>Germany</long_name>
       <short_name>DE</short_name>
       <type>country</type>
       <type>political</type>
      </address_component>
      <geometry>
       <location>
        <lat>50.1115118</lat>
        <lng>8.6805059</lng>
       </location>
       <location_type>APPROXIMATE</location_type>
       <viewport>
        <southwest>
         <lat>49.9968858</lat>
         <lng>8.4243871</lng>
        </southwest>
        <northeast>
         <lat>50.2258641</lat>
         <lng>8.9366247</lng>
        </northeast>
       </viewport>
       <bounds>
        <southwest>
         <lat>50.0155200</lat>
         <lng>8.4727150</lng>
        </southwest>
        <northeast>
         <lat>50.2269512</lat>
         <lng>8.8004960</lng>
        </northeast>
       </bounds>
      </geometry>
     </result>
    </GeocodeResponse>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Developing a website and just trying to get back into the swing of (clever)
I developing a plugin which reads from a .properties file for the database connection,
Developing a .NET WinForms application: how can I check if the window is in
When developing whether its Web or Desktop at which point should a developer switch
When developing a new web based application which version of html should you aim
When developing (works fine live) the pages for our website don't pick up the
Developing a little survey webapp, ran into problem that deals with ranges for rating
Developing an iPad website I tried to use the CSS property overflow: auto to
When developing on BlackBerry or iOS, you can deploy your application just by dropping
While developing with Java in Eclipse it was very handy: you can attach sources

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.