Answer the question
In order to leave comments, you need to log in
How to create city address book for Drupal Openlayers?
Good afternoon, tell me please.
I am creating a site that will have a city, and users will be able to create nodes that have an address,
a street address, and a city house.
Because I'm not very happy with the Yandex people's map. she draws her icons for shops, monument centers, etc., then I decided to switch to Bing maps (Nokia), which are surprisingly 2-3 times better in detail than Yandex.
Duck, the problem is that I want to give users the opportunity to enter the address in letters / text, and so that at the end of creation this node has real coordinates.
As I understand it, the Addressfield, Geofield and Geocode from another field module should come to the rescue here.
It turns out that the user will enter an address in the Addressfield field, after which Geocode will read this text, search the database (Yandex, Google) for this address and return the coordinates of this place to the Geofield field.
But there is one thing, my city does not know Geocode well, besides, I don’t like the address input form at Addressfield, it is somehow American, and ideally I still want Autocomplete when entering the address.
Well, here's what I think, but if you create your own address book, which will be more accurate, more relevant and more detailed.
This is of course a lot of work, but your own address book will be better than third-party ones.
Only one thing comes to mind, to create a taxonomy dictionary ADDRESS, in which there will be a hierarchy of terms, starting from the DISTRICT of the city, then STREET, then HOUSE, so I can even achieve my urban territoriality.
Also in the taxonomy will be additional. fields such as LATITUDE and LONGITUDE.
As a result, we get the most simple address, which will be added to the node as an address as a term.
will have an autocomplete, and will be much more detailed (albeit more dreary to create).
What do you think, not a completely crazy idea, if not crazy, then how do you think, because in this way my dictionary will probably consist of at least 10,000 terms for each house.
Answer the question
In order to leave comments, you need to log in
If we are talking about Russia, then it is better not to reinvent the wheel and use KLADR for autocomplete (more details here - habrahabr.ru/post/192132 ).
The geocoder can receive data from any text field, plus a geocoding service can be specified, for example, Yandex.Maps.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question