Directions form: Change "Directions To" address from lat/lng to actual address Home › Forums › MapPress Support › Directions form: Change "Directions To" address from lat/lng to actual address Tagged: default values, Directions Form, lat, lng This topic has 6 replies, 2 voices, and was last updated 8 years, 12 months ago by grego3781. Viewing 7 posts - 1 through 7 (of 7 total) Author Posts January 27, 2014 at 5:28 am #14138 grego3781Participant Hello, By default, when the directions window opens, the “Directions To” address field contains the lat/lng for the “To Address”. Is there a way to show the actual address in this field instead of the lat/lng? thanks February 5, 2014 at 12:19 pm #14188 ChrisKeymaster Hi, I’m assuming you’re creating the POI by entering an address, then dragging the marker. If so, this is fixed in version 2.40.8. Previous versions would ‘forget’ the address when a POI was dragged. With the new version, the plugin should remember the original address for directions, even if the marker is dragged to a new location. February 6, 2014 at 6:20 am #14196 grego3781Participant Hi Chris, I’m actually adding POI’s via a loop using php: ${‘mypoi_’ . $the_count} = new Mappress_Poi(array(“iconid” => $search_term, “title” => $title, “body” => $body, “point” => array(“lat” => $list_locations[‘latitude’], “lng” => $list_locations[‘longitude’]))); Let me know if this clarifies things. Thanks! February 6, 2014 at 7:09 am #14197 ChrisKeymaster Hi, OK – then in the loop, I think you just need to set the address: new Mappress_Poi(array("corrected_address" => "200 Main Street", “iconid” => $search_term, “title” => $title, “body” => $body, “point” => array(“lat” => $list_locations['latitude'], “lng” => $list_locations['longitude']))); February 6, 2014 at 10:20 am #14201 grego3781Participant Hi Chris, Worked like a charm. One minor correction is that the correct syntax is “correctedAddress” and not “corrected_address”. I have a couple of other questions. Should I post those here or start a new thread? thanks for your help! February 6, 2014 at 10:32 am #14202 ChrisKeymaster It’ll make more sense if you start a new thread, or you can email me directly if you like. February 6, 2014 at 10:56 am #14203 grego3781Participant I’ll go ahead and start a new thread. thanks again! Author Posts Viewing 7 posts - 1 through 7 (of 7 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In