Hi, i've builded a custom shortcode to calculate the distance beetween two addresses or lat_lon coordinates:
something like: [calculate_distance origin="..." destination="..."]
It uses the "google maps distance matrix api" to calculate the distance. I'm not a programmer so it was an hard work.
When using it i noticed it has a good performance but it is near to exceed google maps api limits (it is just 2.500 requests / day) so i have 100 places i can do the job just for 25 pageviews.
For this reason i would like to know about toolset plugin stores the addresses format in the db.
I noticed i can choose while inserting this to change it to {lat,long} format, instead of the longname address.
I have addressed stored in the db as Longname(FIELD_ADDRESS) and using php code:
types_render_field("my-address-field", array('output' => 'normal', 'format' => 'FIELD_LATITUDE,FIELD_LONGITUDE'));
i can extract lat&lon.
I would know if this operation uses the google geocoding api to render this field from FIELD_ADDRESS format to FIELD_LATITUDE,FIELD_LONGITUDE.
I should need to know this detail because i'm thinking about to obtain to calculate distance matematichally since it could exceed google's api limits.