Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Longitude latitude selection component for Delphi?

I'm looking for a Delphi component that enables the user to pick and modify lat/lon coordinates, preferably in a user-friendly way (that is, not by entering two numbers).

Ideally, the component would work as follows:

  • It has fields latitude and longitude that can be edited by the user.
  • Given coordinates, it displays a map or satellite picture with a marker.
  • It can take an address (street, number, zip-code and country) and make a guess for the coordinates
  • It would be nice if a user can drag the marker to adjust the coordinates

Does anybody know if such a component exists? Open-source solutions are preferred. If not, can anybody get me started on how to build such a component?

like image 570
Martijn Avatar asked Dec 06 '25 10:12

Martijn


2 Answers

Try using the Google Static Maps API V2, If you want a Delphi sample to use this API try this article Using Google maps (Static Maps) without TWebBrowser and also check the license agreement (because in the time when I wrote this article the license agreement was different).

...If a Static Maps API image is used outside of a web-based application (such as a browser) then a link must be included pointing to the displayed location in a web browser or native Google Maps application

like image 67
RRUZ Avatar answered Dec 08 '25 02:12

RRUZ


Here you can find 4 articles about use the Google API in Delphi. You can find two arcicles about GeoAdress and two about Google Maps. How to find coordinates (lat/long) of an postal adress o select a position (lat/long) visualy in a Google Maps and retrieve it with Delphi.

The articles are in Spanish, but you can access to authomatic translation with a button on right of page.

All articles are with code; See and test it.

  • (Google Maps - API) Geographic Encoding - I
  • (Google Maps - API) Geographic Encoding - II
  • Google Maps on Delphi - I
  • Google Maps on Delphi - II

Regards.

like image 37
Germán Estévez -Neftalí- Avatar answered Dec 08 '25 02:12

Germán Estévez -Neftalí-



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!