Maps me получение результата из карт

Здравтвуйте! Я использую в качестве карты Maps me, использую Activity Starter.Maps me работаеть нормально. Зашел на страницу API там код открытый: https://github.com/mapsme/api-android

только вот не знаю как использовать блоки Activity Starter чтобы получить ответ (гео или другие данные) после возарата в приложению. Потому что ответ (результат) пустой. Как мне получить из карты Maps me результат о широте и долготе или ещи другие с помощью Activity? Спасибо за ответ!

I am not familiar with MapsMe. It is a program to use offline maps. I assume you have the Pro version loaded on your Android. Most people will not.

You try to use the MapsMe api using intents. Intents are called with App Invenor 2 using ActivityStarter so that might work.

I have no documentation about how to use intents with MapsMe. I cannot find how to use intents using the link you provided. Your DataUri seems suspicious. Place a comma to separate 25.646… latitude and -100.175…longitude and see what happens. The standard way to represent a location is to use the latitude and longitude separated by a comma (for example, latitude,longitude)

Consider using the MIT Map component. The Map component can access cached OpenStreetMap tiles offline ( they tiles have to have been previously accessed on line at least once in the area you wish to see a map.). An app made with the Map component caches map tiles automatically so it is possible, in some circumstances, to use the OSM tiles without accessing the OSM server.

Спасибо, Стив, за подробный ответ, я работаю над приложением которое работает кмл файлами! А у компонента MIT Map пока нет такой возможности! По этому хотелось бы с помощью профессионального специалиста осуществить обмен данных между приложением AppInventor i Maps Me. То что написано в документации API самостоятельно не мог понять😔. Если помогли бы с разбором API было бы здорово!

У меня такая задача

1). Когда я нажимаю кнопку показать на карте, приложения по GPS координатам переданным мною показывает мое местоположение.
2). После выбора на карте MAPS ME конкретной метки и нажатие кнопки назад надо получить имя, широту и долготу выбранной на карте метки.
3). Я исправил ошибки, которые Вы указали, наверное еще есть ошибка, потому что карта не показывает переданное местонахождения.

Спасибо за терпение!

!

Show some example data you get from the API, it sounds like it is possible to convert / parse this to work with the Maps component…

Я наверху в ГИТХАБ показал ссылку для получения обратных данных, но не знаю как использовать в астивити стартер

Я хочу получить, но еще не получил, нужен помощь!

That is for use with Android Studio. Will not work here.

Do you have a url you use in a computer browser that returns a json string from MapsMe API ?

Я стараюсь получить обратные данные вот отсюда, но получаю пустую строкуblocks (8)

но получаю пустой текст

Неужели невозможно заполучить данные выбранной метки на карте КАРТА МЕНЯ обратно в приложение АППИНВЕТОР? Может есть какие то другие способы через

The last work on the MapMe api took place in about five years ago which means the developers are not updating. The documentation indicates intents can be used by it never explains how or provides an example.

As Tim mentioned, it might be better for you to work with the Map component. You said "Спасибо, Стив, за подробный ответ, я работаю над приложением которое работает кмл файлами! А у компонента MIT Map пока нет такой возможности! " Actually, it might be possible.

App Inventor can work with xml or json files; a kml file is a specially formatted xml.

It should be possible to convert kml to json or json to kml. How? Here is a beginning https://groups.google.com/forum/#!category-topic/mitappinventortest/app-inventor-extensions/DqEeorciOC0 These links provide some other potential ideas.

https://www.google.com/search?q=kml+to+json&oq=kml+to+json&aqs=chrome..69i57.4175j0j7&sourceid=chrome&ie=UTF-8

Is this possible? Probably. It depends on why you need the coordinate information in kml format. https://developers.google.com/kml/documentation/kml_tut

A location in kml format looks like
kml

You could use this routine. It is made for projecting a route on Google Maps but i guess it can be transformed to project on the Open Streetmap component from App Inventor.

It is also based on processing KML coordinates.

https://community.thunkable.com/t/googlemap-polyline-json-style-my-way/4492

Спасибо помогли!

интересно,спасибо!

1 Like