Saving longitude and latitude values.
I hope someone can help me on this. I want to do two things.
1. Store longitude and latitude values in the DB.
2. Modify search results page to show how many miles the item is from their post code.
For 1st request: I guess I can create a custom fields and it will probably store in Wp_PostMeta ? but where and how do i change the code to save the L&L values when it available for the first time? i.e when someone views the item, it get those values from google API and I want to store that ?
2. Where should I look to add another column (miles) in the search results?
Btw, I found a code to work out the distances here - http://aciddrop.com/2007/12/17/quick...odezip-finder/