How to change text and set address on map ( Add-listing )
This topic contains 23 replies, has 4 voices, and was last updated by Ding Hua 8 years, 2 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
December 12, 2016 at 8:14 am #323508
Hi ,
Refer arrow in the attached file ,
How can I change the text for
a) Region –> to Division (or any other text)
b) City –> to Township (or any other text)
d) Text in region selection drop down , Select state –> to select Division (or any other text)
d) Text in City selection drop down , Select City –> to select Township (or any other text)And “Set Address on Map” button:
When user click , I don’t want to use value from fields like address , region and city to search location to get lat and log.
In Singapore , there is no region and city. Only use country Singapore and postal code is enough in google map. We normally use Country name and postal code to search location on google map. How can I change to search using only country name and postal code only when user click “Set Address on Map”(ignore the reset of the field like address,region and city).Rgds,
YCDecember 12, 2016 at 5:41 pm #323776Hi Ding Hua,
Have you tried that translation method? It should work, though, and here’s the link https://wpgeodirectory.com/docs/translate-core/ . Let us know how it goes.
December 13, 2016 at 7:53 am #324017Hi Kor Chung,
No. This method works only for other , refer the arrow key in attached file for working one.
It does’t work for Address and map.I have two questions from above post. Pls answer both questions. Thx.
Question 1)
How can I change the text for
a) Region –> to Division (or any other text)
b) City –> to Township (or any other text)
d) Text in region selection drop down , Select state –> to select Division (or any other text)
d) Text in City selection drop down , Select City –> to select Township (or any other text)Question 2)
And “Set Address on Map” button:
When user click , I don’t want to use value from fields like address , region and city to search location to get lat and log.
In Singapore , there is no region and city. Only use country Singapore and postal code is enough in google map. We normally use Country name and postal code to search location on google map. How can I change to search using only country name and postal code only when user click “Set Address on Map”(ignore the reset of the field like address,region and city).rgds,
YCDecember 13, 2016 at 6:04 pm #324351HI,
1) Kor already replied this question. All default text strings, can only be changed via translation files: https://wpgeodirectory.com/docs/category/translation/
Some will be in the core plugin, some in the location manager. It’s not hard to figure out where one would be.
2) that is not possible, the system requires those fields even for a single city.
Thanks
December 14, 2016 at 3:19 am #324500Hi,
1st question is working fine after changing location add on .po file.
For 2nd question , refer attached file google-map-api-query-with-postal-code-n-country.png , the google map api allows to query only with postal code and country and the information return is correct and accurate, refer to the attached file long-lat-on-google-map.png for verification.
It means google map api allows to query with postal code and country only.
You can try it here:
http://maps.googleapis.com/maps/api/geocode/json?address=732895,SingaporeAny idea where can I change to make this work ?
or any option that I can configure for this to work ?
Rgds,
YCDecember 14, 2016 at 6:17 pm #324789Hi,
removing region and country would require a very extensive customization. I asked to the developers to let us know if they have a better idea.
They’ll let us know,
Thanks
December 15, 2016 at 4:31 am #325026Hi ,
Not remove country.
Currently using below to query geocode
1.Address
2.Country
3.Region(state)
4.City
5.Postal codeFor Singapore , it can be queried by using only two , country & postal code.
As shown here:
http://maps.googleapis.com/maps/api/geocode/json?address=732895,SingaporeAnd ignore city,state(Region),address as there is no city and state in Singapore.
Rgds,
YCDecember 15, 2016 at 6:57 pm #325398Hi YC,
I see it return Singapore for the city also, maybe we need to add region as Singapore too?
Would this solve the problem (i am not sure what the problem is you are having)Stiofan
December 16, 2016 at 1:21 am #325503Hi Stiofan,
My end users do not want to select/key in many things to get geocode lon/lat by pressing “Set Address on Map” button.
They just want to select country “Singapore” and key in postal code and press “Set Address on Map” button to get geocode lon/lat.
It means , when user press “Set Address on Map” button , geodirectry just use the value for country and postal code(ignore address,region(state),city) to query google map geocode , like below.
google api query allows it
Look at the last two parameters for api input.
732895 is postal code
Singapore is countryhttp://maps.googleapis.com/maps/api/geocode/json?address=732895,Singapore
Thus,
Any idea where can I change to make this work ?
or any option that I can configure for this to work ?
Rgds,
YCDecember 16, 2016 at 11:06 am #325580Hi YC,
It would still leave the region empty which would cause problems. Is your site limited to just Singapore?
Stiofan
December 16, 2016 at 11:39 am #325590This reply has been marked as private.December 16, 2016 at 3:32 pm #325681Do you even need the location manager at all then?
If you do for some reason have u tried setting the country, region and city to the default only? If you can provide wp-admin i can set it up for you like that.Stiofan
December 17, 2016 at 11:05 am #326078This reply has been marked as private.December 19, 2016 at 2:23 am #326807Hi Stiofan,
I have tried setting the country, region and city to the default.
Still doesn’t work. Seem like API is not querying with postal code.
Thus , API cannot reply correctly some of the address in Singapore.As I mentioned before , In Singapore , query with postal code and country is most accurate.
And I cannot use country, region and city to the default as I still need to use
[gd_location_switcher] to show user post on different location.Thus I still need to use multilocation.
And just need option for map api to query with postal code and country and don’t update region and city data rerun from api.Just need to update long/lat.
Rgds,
YCDecember 19, 2016 at 9:40 am #326936Hi YC,
Have you tried, GD>Multilocations>ADD LISTING FORM SETTINGS>Disable set address on map from changing address fields
Stiofan
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket