Manually select location, how to implement?

Zerok

I'm building an app in Ionic 3.4 that uses Geolocation to show a list of places in the Google Maps JS SDK. It works pretty neat, except for some devices, in which Cordova seems to have serious problems when retrieving the geolocation (at this moment, it only happens to my Xiaomi mi5s, Global MIUI 8).

This is a trouble, and there doesn't seem to be any fix for that. Then, if my petition throws a timeout after a few seconds, I will enable a little formulary which permits the user to select his country, and then, city.

For this, I need:

  • Some kind of API that gives me all countries
  • That same API should permit me go into a lower level and select the different localities/cities of that country, or even perform a search over them.
  • When both things have been selected, the API should retrieve a geolocation I can pass to the map to show that place off.

I've been taking a look and I still don't know how I can do this... so, do you know some kind of API that can permit me this? A working example would be appreciated, too!

Thank you.

lowxkey

You might want to take a look at this, it has a search box which adds a marker onto the map when the user clicks on the searched result in the search box.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to implement mock location?

From Dev

How to implement mock location?

From Dev

how to implement PHP session manually

From Dev

How to implement instagrams location search

From Dev

How to implement Crypt::encrypt method manually in PHP?

From Dev

How to manually trigger a search and then select the first option manually in jQueryUI autocomplete?

From Dev

How to implement onConnectionFailed() and onDisconnected() for a location service

From Dev

How to implement onConnectionFailed() and onDisconnected() for a location service

From Dev

Django - how to have dependent select fields manually

From Dev

Kendo DropDownList - how to manually select an item?

From Dev

How distinguish between browser back and user manually changing location hash

From Dev

How to set current location manually in the map (sencha touch2)?

From Dev

How do I manually set location for redshift using the conf files?

From Dev

how to implement datatables select filter

From Dev

How end user select Dock, Anchor, Location,

From Dev

Regex: how to select <td> of the location with PHP

From Dev

How to Implement draggable map like uber android, Update with change location

From Dev

How to implement nested location and store it in a database with PHP/MySQL?

From Dev

How to implement multi select in a independent table in Rails?

From Dev

PL/SQL How to implement conditional select

From Dev

How to manually toggle angular-ui-select dropdown

From Dev

How to manually set the value (and trigger the select event) to jQuery autocomplete

From Dev

How to manually select a node in a JTree [problems with nested nodes]

From Dev

Android location - no matter how I implement it, I never get the location marker icon in the notification bar

From Dev

How to implement Single Choice select in Wicket Select2 compoment

From Dev

How do I manually cause a 'select' event on an Openlayers 3 ol.interaction.Select?

From Dev

Manually specify location of .vagrant folder in Vagrantfile

From Dev

java -setting the location of manually compiled class files

From Dev

How to select Default folder location in File Upload Control?

Related Related

  1. 1

    How to implement mock location?

  2. 2

    How to implement mock location?

  3. 3

    how to implement PHP session manually

  4. 4

    How to implement instagrams location search

  5. 5

    How to implement Crypt::encrypt method manually in PHP?

  6. 6

    How to manually trigger a search and then select the first option manually in jQueryUI autocomplete?

  7. 7

    How to implement onConnectionFailed() and onDisconnected() for a location service

  8. 8

    How to implement onConnectionFailed() and onDisconnected() for a location service

  9. 9

    Django - how to have dependent select fields manually

  10. 10

    Kendo DropDownList - how to manually select an item?

  11. 11

    How distinguish between browser back and user manually changing location hash

  12. 12

    How to set current location manually in the map (sencha touch2)?

  13. 13

    How do I manually set location for redshift using the conf files?

  14. 14

    how to implement datatables select filter

  15. 15

    How end user select Dock, Anchor, Location,

  16. 16

    Regex: how to select <td> of the location with PHP

  17. 17

    How to Implement draggable map like uber android, Update with change location

  18. 18

    How to implement nested location and store it in a database with PHP/MySQL?

  19. 19

    How to implement multi select in a independent table in Rails?

  20. 20

    PL/SQL How to implement conditional select

  21. 21

    How to manually toggle angular-ui-select dropdown

  22. 22

    How to manually set the value (and trigger the select event) to jQuery autocomplete

  23. 23

    How to manually select a node in a JTree [problems with nested nodes]

  24. 24

    Android location - no matter how I implement it, I never get the location marker icon in the notification bar

  25. 25

    How to implement Single Choice select in Wicket Select2 compoment

  26. 26

    How do I manually cause a 'select' event on an Openlayers 3 ol.interaction.Select?

  27. 27

    Manually specify location of .vagrant folder in Vagrantfile

  28. 28

    java -setting the location of manually compiled class files

  29. 29

    How to select Default folder location in File Upload Control?

HotTag

Archive