63
Views
3
Comments
Solved
LOCATION PLUGIN AND NATIVE GEOCODER PLUGIN
Application Type
Mobile
Service Studio Version
11.53.13 (Build 61176)

 

Hello everybody.

I'm new to outsystems and I'm developing an app for mobile to schedule appointments.

I need to get the latitude and longitude, find these coordinates, convert to address and write to a database.

I'm using two plugins: LOCATION PLUGIN and NATIVE GEOCODER PLUGIN.

I can get the latitude and longitude, and I'm having trouble getting the address, even after sharing in the NATIVE GEOCODER PLUGIN the latitude and longitude of the LOCATION PLUGIN.

Can anyone help me, because all POSTs related to this subject are not for beginners and many subjects have no relationship with what I need.Sorry for the English, I use a translator.

Follow my app for appreciation and analysis of what I may be missing or doing wrong.

Thanks,

MARCELO SAMPAIO

Local_RARAFRIOS.oml
2021-01-04 08-13-48
Toto
 
MVP
Solution

Hi,


I have compiled your app, and creating a demo screen (I'm planning to use your screen, but after changing some, I think better for a new screen. Backup your oml if you want to try this, some of your functionality is already changed).

From my test, the addressText is returning value as json, but address returned empty.

So my sugestion is using addressText and breakdown the component (using widget jsonDeserialize)

Also another thing, the address is not complete, I believe this is because of the plugin database. If you want complete address, better use google reverse geocode (should be better address information)

This is the example the same lat long in google reverse geocode

Local_RARAFRIOS(1).oml
2021-01-04 08-13-48
Toto
 
MVP

Hi,


I haven't compile the app, but have you tried using AddressText and not Address from the CoordinatesToAddress action ?

Also maybe you want to check google Reverse Geocoding API (https://developers.google.com/maps/documentation/geocoding/requests-reverse-geocoding), I think this is easier and more accurate (but you must have API key from google)

UserImage.jpg
Marcelo Sampaio

No... I didn't use what you informed, on the contrary, I used COORDINATESTOADRESS.ADRESS.LOCALITY which I believe is the conversion of lat and long into address...

2021-01-04 08-13-48
Toto
 
MVP
Solution

Hi,


I have compiled your app, and creating a demo screen (I'm planning to use your screen, but after changing some, I think better for a new screen. Backup your oml if you want to try this, some of your functionality is already changed).

From my test, the addressText is returning value as json, but address returned empty.

So my sugestion is using addressText and breakdown the component (using widget jsonDeserialize)

Also another thing, the address is not complete, I believe this is because of the plugin database. If you want complete address, better use google reverse geocode (should be better address information)

This is the example the same lat long in google reverse geocode

Local_RARAFRIOS(1).oml
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.