Question

I am building an application that uses the GMaps API v3 and, taking advantage of the geocoding function, i dont know if it is better to store in the DB:

  1. The coordinates (latitude & longitude)
    • When i need to place a marker, just put it
    • When i need the address, query the API
  2. The address (as a string)
    • When i need to place a marker, query the API
    • When i need to post the address, just print it
  3. Store Both

What would you recommend?

Thanks in advance!

Was it helpful?

Solution

I recommend:

1) Storing both

2) Cranberry and Mint Martini. (excellent vodka drink, take after success in programming).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top