close ad
WARNING PC USERS: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Access geocoded latitude and longitude values

Thread began 9/21/2009 12:25 am by info315909 | Last modified 10/05/2009 9:48 pm by info315909 | 3989 views | 15 replies |

info315909

Access geocoded latitude and longitude values

Once a map has been initialised using a text address - where and how can the geocoded latitude and longitude values for that address be accessed?

I would like to store the latitude and longitude values in a database for caching purposes, and also, to then use those values for a seperate Google Street View at the same address.

How would you access the variables for the outputted latitude and longitude? Javascript or PHP variables?

Sign in to reply to this post

tom92909Beta Tester

When entering the coordinates, use the decimal value, not the Degrees, Minutes, Seconds value.

This site will convert to decimal...
DDDMMSS-decimal.html

Sign in to reply to this post

info315909

Sorry if I wasn't clear.

The map is created from an actual text address (27, long street, etc) the latitude and longitude values are determined via Google's geocode service 'on-the-fly'.

I would like to know where the latitude and longitude values are stored and how to access those values. Variables created in wagmp_map_1.php?

Sign in to reply to this post

Justin Nemeth

Check your site that contains the map and there will be a directory called _promaps_cache. There is an XML file in there with the cached values.

Sign in to reply to this post

info315909

Thanks Justin.

That would have made things easy, however, there was no xml file in the '_promaps_cache' directory. The required xml file is not being created.

I created a blank xml file called '_promaps_geocache.xml' and uploaded it to the directory. However it does not get updated when viewing the map (tried many times). The '_promaps_cache' directory and the '_promaps_geocache.xml' have 755 permissions.

How do I troubleshoot this?

Sign in to reply to this post

info315909

I created a new test page with a google map.

The relevant generated files are attached.

Can you locate the issue?

Thanks for your help.

Attached Files
Google maps test.zip
Sign in to reply to this post

Justin Nemeth

Can you post a link to your site that contains the map page? That will allow us to debug the map on your live server to see what is going on.

Sign in to reply to this post

info315909

Justin, unfortunately it is in a secure backend environment.

Is there another way to determine the issue?

Is it possible to upload the files I sent to a testing area on one of your servers to determine if the _promaps_geocache.xml file is being created and updated?

Are the created files exactly as they should be?

Thanks for your continued help with this issue.



In the meantime could you please send me an example of a correctly written _promaps_geocache.xml file with an address written to it?

Sign in to reply to this post

Justin Nemeth

After some testing it looks like a permissions issue on the _promaps_cache directory. Trying giving that directory (and the file inside to be safe) write permissions. Make sure its not set to read only too.

Here is what the XML looks like:

<geocode_data version="1.0">
<geocode_entry ID="George Street Sydney New South Wales 2000 Australia">
<address>
George Street, Sydney, New South Wales, 2000, Australia
</address>
<geocode>(-33.868737, 151.206946)</geocode>
</geocode_entry>
</geocode_data>
Sign in to reply to this post

info315909

A combination of the two following changes have got it working:

1. Created the _promaps_geocache.xml file with the example XML you provided as a starting point.
2. Changed permissions for folder and file to '777' (read/write all).

However, the created XML has ![CDATA] tags throughout. What would cause this? And is this an issue?


Example code:

<?xml version="1.0" encoding="utf-8"?>
<geocode_data version="1.0">
<geocode_entry ID="200 George Street Sydney NSW 2000 Australia"><address><![CDATA[200 George Street, Sydney, NSW, 2000, Australia]]></address><geocode><![CDATA[(-33.862622, 151.207813)]]></geocode></geocode_entry></geocode_data>


Thanks again.

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...