geocoder-php / Geocoder

The most featured Geocoder library written in PHP.
https://geocoder-php.org
MIT License
3.95k stars 517 forks source link

Add Apple Mapkit provider #912

Open lathamios opened 5 years ago

lathamios commented 5 years ago

Apple has recently released it's own js geocoding solution, mapkit.js with generous call limits. It would be great if this could be added as a provider

jbelien commented 5 years ago

Hello @lathamios ,

That would be interesting indeed. Could you provide a Pull Request with this ? Or at least documentation on the API ?

I found this (https://developer.apple.com/documentation/mapkitjs/mapkit/geocoder) but nothing about the API behind it.

atymic commented 5 years ago

I'll have a look at this when I have some spare time.

atymic commented 5 years ago

I did some research, i'm waiting for apple to approve my dev account before I can submit a PR.

Docs: https://developer.apple.com/documentation/mapkitjs/mapkit/geocoder
Geocode URL: https://api.apple-mapkit.com/v1/geocode?q=1+york+st+sydney&lang=en-GB Reverse geocode URL: https://api.apple-mapkit.com/v1/reverseGeocode?loc=37.37%2C-122.04&lang=en-GB

Auth: https://developer.apple.com/documentation/mapkitjs/creating_and_using_tokens_with_mapkit_js

atymic commented 5 years ago

So unfortunately I can't pick this one up ATM as getting an apple developer account requires an apple device :disappointed:.

If someone with an apple device is willing to create a developer account and key for me to test/develop with i'll still have a go.

atymic commented 5 years ago

Anyone have an apple developer account? 😄