Skip to main content
1 of 3
lz7cjc
  • 111
  • 1
  • 1
  • 3

Storing latitude and longitude in Postgresql

I know there are similar questions on here that have been answered but unfortunately none of them work for me. I am hacking my way through creating a page which will display multiple locations on a map. I am using HTML 5 mapping plus google maps. I have converted the addresses I have, into long/lat and they are stored in a CSV file along with other attributes.

I have tried storing as point, character varying and number as well as trying to create my own definition but have had no success. The table already exists and I just need to add these additional columns. I would rather not use POSTGIS since that feels like adding in an additional level of complexity which I could well do without.

So what do you suggest?

thanks

lz7cjc
  • 111
  • 1
  • 1
  • 3