Answer the question
In order to leave comments, you need to log in
The address in Cyrillic does not go through geocoding, where did you screw it up?
Hi all. Tonight I sat down at the Google Maps Api, I decided to at least find out a little what it is, how it looks and how it works, so I have 0 experience, and I’m not a programmer either. Those who closed the page after these words - I understand =).
What we are dealing with:
- Database (utf8_general_ci)
- Table with a small number of rows
- In the address table like "Ukraine, Kiev, Ivanova, 1"
- A simple page for displaying a map
- A file in js format connecting to the page, it contains all the code API and contains
Process:
Standard situation - the script pulls the address from the base, geocodes it, gets lat and lng, centers the map on them and places a marker on the page. (the code is slightly different from what is presented on Google in the example, I’m actually learning)
Problem:
If the address in the database is written in Cyrillic (“Ukraine, Kiev, Ivanova, 1”), nothing works. If in English (“Ukraine, Kyiv, Ivanova, 1”), everything is fine.
I google for an hour and a half, I try, it doesn’t work out ... I would be grateful for the help. If you need any more extensive information - write.
Answer the question
In order to leave comments, you need to log in
I didn’t use Google maps much, but the refusal to eat Cyrillic lies in the code page area.
I would dig in that direction, given the following phrase:
If language is not supplied, the geocoder will attempt to use the native language of the domain from which the request is sent wherever possible.
developers.google.com/maps/documentation/geocoding/
And another moment, from the phpsqlajax_genxml.php database, it definitely doesn’t take crocodile? Normally readable text comes from it?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question