PDA

View Full Version : latitude longitude additional Boxes for MAP AN ITEM



andy69
01-16-2012, 03:50 AM
Hi there, almost all mobile phones saves latitude and longitude datas with the picture,
that would be much easier and EXACTLIER to show the right position of each sales item ;P

Do you know how or where to modify the code.


Thanks
Andy :cool:

jonyo
01-16-2012, 11:03 AM
Hi there, almost all mobile phones saves latitude and longitude datas with the picture,
that would be much easier and EXACTLIER to show the right position of each sales item ;P

Do you know how or where to modify the code.


Thanks
Andy :cool:

Currently it does not store the lat/long of the listing item, it stores the address, and uses google maps to look up the lat/long when it is time to display the google map for that listing. Since you asked where to modify the code: to do this first you would need to code in the ability to store the Lat/Long for each listing by making DB structure changes, then code in how it would save that data (not sure how you would do that by pulling info from the phone), then code in making it use that data for mapping. Definitely not easy.

I've been wanting to change it so that it does store the Lat/Long for the listing once it has "looked up" the location based on the mapping info so it doesn't need to re-look-up the info each time (ever since I ran across the fact that it doesn't do that already), I was kind of planning to do that as part of the task to update Google Maps to use the newer version of Google Maps API, noted in bug 175 (https://geodesicsolutions.com/bugzilla/show_bug.cgi?id=175). Whenever we do that, then the only change you would need to make yourself is figuring out how to grab the lat/long from the info stored on the phone for an image (or however you planned to do that) and store the lat/long that way, so you would have a little less work to do.