Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7969407
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T07:13:57+00:00 2026-06-04T07:13:57+00:00

My Google Map needs to support off road locations. I’d like to know how

  • 0

My Google Map needs to support “off road” locations.

I’d like to know how to prevent my map marker from snapping to road.

Address is passed from an input field and lat & lng are extracted form marker’s position.

function geoCodeLocation(address, lat, lng) {
    geocoder.geocode( 
    { 
        "address" : address ? address : '', 
        "location" : new google.maps.LatLng(lat, lng) 
    },
     /* ... */

}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T07:13:58+00:00Added an answer on June 4, 2026 at 7:13 am

    The code you have shown is pretty minimal, so I may have missed the point, but Geocoding normally does one of two things:

    1. You have a LatLng and you need the address
    2. You have an address and need the LatLng

    The GeocodingService requires either the address or the location, but not both.

    Your code looks like it always expects to have the LatLng and that the address may exist. If you call the Geocoder with a LatLng, it will return an address. In that case, it makes sense that a marker would be attached to the road.

    On the other hand, if you have an address, the LatLng you get back will be based on the address, so it also makes sense that it will be attached to the road.

    But if you always have the LatLng, why not just create the marker with the LatLng and skip the geocode call (especially since you don’t want the marker to be on the road)?

    If I am off the mark, could you please add more detail to your question?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

http://railskits.com/map/ Would you like to launch your own google map mashup? Need a way
I'm looking for a javascript world map, much like Google Maps, that can be
I have a package that requires Google Map library. And I implemented it like
Right now I have google map code that will set a single marker on
I'd like to use Google maps static API to display a map with a
I am working on one iPhone app which needs latitude and longitude from address.
I am trying to create a Google Map with a single coordinate as marker.
I need to draw multiple routes on a google map. By googeling around i
I am working with google map. According to requirements i need to set different
I have an application based on google map, in which I need to use

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.