Replace spaces in URL parameter
This is an open discussion with 1 reply, filed under General.
Search
http://maps.google.com/maps/api/geocode/xml?address=london+{translate($url-origin,' ','+')}&sensor=false
Create an account or sign in to comment.
I have a geographic search function on this page which plots nearby locations on a Google Map.
I am trying to plot the search origin location on the map too and have a remote datasource looking up the geocode as follows:
The problem is that the lookup fails if there is a space in the search query string such as "SW17 7RH".
Is there a way to replace spaces in a URL parameter in order to show "SW17+7RH" in the remote DS URL instead of "SW17 7RH"?
Thanks in advance for any help on this :-)