Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor hupe13

    (@hupe13)

    Try to clear the Geocoder Cache in Leaflet Map Settings page at the bottom and open the contact page again.

    Thread Starter Ita Pronk

    (@itapronk)

    Hi Hupe13,

    Thanks, I cleared the cache but no results, unfortunately…

    Plugin Contributor hupe13

    (@hupe13)

    What shortcode you are using?

    [leaflet-map lat=51.924 lng=5.861 zoom=15 ]
    [leaflet-marker address="22, Fortuna, Elst, Overbetuwe, Geldern, Niederlande, 6661 JH, Niederlande"]
    Thread Starter Ita Pronk

    (@itapronk)

    Hi Hupe13,

    To load the Leaflet map, centered on the neighbourhood :

    [leaflet-map address=”Fortuna 22, Elst, Nederland” height=”800px” fitbounds dragging scrollwheel]

    Then, the first marker bases on address, with the default blue pin:
    [leaflet-marker address=”22, Fortuna, Elst, Overbetuwe, Geldern, Niederlande, 6661 JH, Niederlande”]

    Secondly, the custom gold marker bases on latitude and longitude:
    [leaflet-marker iconUrl=”/wp-content/uploads/2023/05/marker-icon-2x-goud.png” iconsize=”25,50″ iconanchor=”0,50″ lat=”51.924″ lng=”5.861″ ]

    • This reply was modified 1 year, 6 months ago by Ita Pronk.
    Plugin Contributor hupe13

    (@hupe13)

    I’m sorry, my values were not precise enough:

    [leaflet-map fitbounds dragging scrollwheel]
    [leaflet-marker address="22, Fortuna, Elst, Overbetuwe, Geldern, Niederlande, 6661 JH, Niederlande"]with address[/leaflet-marker]
    [leaflet-marker lat=51.92459 lng=5.86103]OSM coordinates from your first post[/leaflet-marker]
    Thread Starter Ita Pronk

    (@itapronk)

    Yes, but the blue marker (based on the address data) is positioned in the middle of our village, and the gold one (based on latitude and longitude) is positioned just right on our home.

    Do you have any idea what the difference is?

    Plugin Contributor hupe13

    (@hupe13)

    • Which Geocoder you are using? – I testing the above code with “Openstreetmap Nominatim”.
    • You cleared the Geocoder cache.
    • You are using my above code for leaflet-marker.
    • I don’t have any more idea.
    Thread Starter Ita Pronk

    (@itapronk)

    Indeed, “Openstreetmap Nominatim”.
    Maybe I’m not quite sure what influence the Geocoder might have; I hadn’t heard of it until your first comment. Could I change anything about this?

    And I also had an issue on another website that the pin was placed near London, while the company is near Manchester. Do you have any idea how that might be?

    It’s on the website https://umefa.nl/diversen/dealers/?filter=2427,2429,2431,2433 and the specific problem is with company https://groveproducts.co.uk/contact.asp :
    Grove Products
    Broadway
    Hyde
    Cheshire
    SK14 4QF

    Thanks in advance!

    Plugin Contributor hupe13

    (@hupe13)

    To display markers with addresses, they must be converted to lat and lng. This requires a service (e.g. Openstreetmap Nominatim) that is not always free. To minimize such queries, they are stored in the database. With “Clear Geocoder Cache” the entries are removed.

    If this doesn’t work for you, you can use lat and lng directly.

    @bozdoz, do you have an idea, why adresses do not work?

    • This reply was modified 1 year, 6 months ago by hupe13.
Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Location by address is different than the location by lat & long?’ is closed to new replies.