我该如何更改语言?我的意思是如何用波斯语写出城市名称(出发地,目的地)?像这样:destination =“تهران,ایران”
以下代码正常运行:
<script src="http://maps.google.com/maps/api/js?sensor=true&language=fa"></script>
<script type="text/javascript">
var origin = "Karaj",
destination = "Tehran",
service = new google.maps.DistanceMatrixService();
但我想要波斯名字:
<script src="http://maps.google.com/maps/api/js?sensor=true&language=fa"></script>
<script type="text/javascript">
var origin = "کرج",
destination = "تهران",
service = new google.maps.DistanceMatrixService();
这不起作用。我该怎么办?