Skip to main content

How to fix the system's map issues

Check this article if you are facing any errors with the map.

If you use Google Maps in Onro, some problems might occur, mainly because of the API keys configuration.

Here are some of the most frequent problems you might see:

  • The map doesn’t load

  • The map is loading, but getting the developer's error

  • Address search doesn't work

  • The price for an order isn’t calculated

  • The map opens in the ocean instead of the default zone

  • Getting zero for the route's distance, duration, and ETA

How to Check for Errors

You can use your browser’s developer tools to find out what’s going wrong:

  1. Right-click anywhere on the dispatcher or web app screen and select “Inspect”.

  2. Go to the “Console” tab at the top of the panel that opens.

  3. Look for any error messages—these will often tell you what the issue is.

Possible Causes of Map Errors

Here are a few common reasons you might see map-related issues:

  • Your domain isn’t allowed to use the API key.

  • Your billing account is missing or inactive.

  • A required API (like JavaScript or Geocoding) is not enabled.

  • Your default map location (zone) isn’t set correctly.

  • The map is loading, but it gives a developer error.

Step-by-Step Fixes

✅ Make Sure Integration Settings Are Correct

Before diving into Google Cloud Console, go to your Admin Center and check:

  • Settings -> Integrations -> Map -> Google

  • Make sure the correct API keys are added for both the Dispatcher and Web App.


✅ API Key or Account Not Available?

If your previous Google Cloud account is no longer accessible:

  • Create a new account in Google Cloud Console.

  • Set up your project and create new API keys.

  • To create and set your API keys in the Admin Center, check here.


✅ Check Allowed Domains (Dispatcher & Web App)

If the map works on mobile but not on the dispatcher or web app:

  1. Open your Google Cloud project.

  2. Go to API & Services -> Credentials.

  3. Find the API key used in the Admin Center and click to edit it.

  4. Under Application Restrictions, select “Websites”.

  5. Make sure your domain is added in this format:
    *.yourdomain.com (e.g., *.onro.io)

  6. Click Save after adding the domain.


✅ Enable Required APIs

If prices, distances, or durations are not being calculated, some APIs may not be enabled.

  1. In your Google Cloud project, go to:
    API & Services -> Enabled APIs & Services

  2. Click “+ ENABLE APIS AND SERVICES” (at the top).

  3. Make sure the following APIs are active:

    • Geocoding API

    • Geolocation API

    • Maps JavaScript API

    • Maps SDK for iOS

    • Distance Matrix API

    • Directions API

    • Places API

    If any are missing, search and enable them.


✅ Check Your Billing Account

If you see billing-related errors in the Console:

  1. Go to Billing from the left-hand menu in your Google Cloud Console.

  2. Confirm that a billing account is linked to your project.

  3. If not:

    • Link an existing account or create a new one.

    • Make sure your Google account is verified.


✅ Fix the "Map in the Ocean" Problem (Default Zone)

If the map opens in the middle of the ocean:

  1. Go to your Admin Center.

  2. Navigate to: Settings -> Default Zone.

  3. Select one of your existing zones as the default zone.

  4. Save the changes.

  5. If it's not fixed yet, visit the Users & Groups tab and edit the user and unassign and assign their zone one more time.


✅ Fix the distance, duration & ETA issues of the routes

To calculate the route's distance, duration, and ETA, you should integrate your system with Onro Map. If Onro Map is not set for your system, or it's already set but you still get zero for the fields mentioned earlier, contact support and check our other article.


Need Help?

If you’ve tried all of the above and the issue persists, don’t worry—reach out to Onro Support and they’ll help you troubleshoot further.

Did this answer your question?